Discussion:
[bottlepy] input and output windows
Thomas Sterber
2016-07-29 16:12:17 UTC
Permalink
I am trying to find out how I can generate a page where I have a input and
output.
Excample: input: Button-A and Button-B output on the same page , may be in
a frame, a text readed out of a file depending of pressed button.

Any ideas how to do that using bottle.

I have used tkinter in the past.


regards,
Thomas
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.

---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
e***@gmail.com
2016-08-04 17:22:04 UTC
Permalink
Your problem seems to be HTML not bottlepy. The following template should
put you on the right track:

<form>
<button name="button" value="a">Button A</button>
<button name="button" value="b">Button B</button>
</form>
<pre>{{output}}</pre>

Then simply check request.query.button, read the according file and return
the template with output set to the file content.
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.

---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...