Here's something like what I want to do (in a GUI, such as one made with WxPython):
Using only one text control for input and only one for output, I would like to ask the user about twenty unique questions (one at a time), and store the answers in a list of strings. (This is just an example of the sort of thing I need. I need a dynamic answer—so something that will only work for a certain number of questions won't help.)
Now, this would be extremely easy on the command-line, but I need a way of doing this, just as flexibly, in a GUI.
Any ideas?
If you instantly think the solution looks simple, you probably haven't actually tried this. The problem with user input in GUIs is that the event loop is always running, and there's only one function to respond to it. On the command-line, however, it only runs (in your program) when you call the raw_input function, and you can easily give a different response every time.
Now, I've already done tons and tons *with* designing around this lack of functionality, but I've come to the point where I actually need this.
I'm trying to make it so I can program as if it were from the command-line, only have the result happen in a GUI, instead.
Bookmarks