[Tutor] Keyboard input

Joseph J. Strout joe@strout.net
Mon, 18 Oct 1999 07:45:37 -0700


At 8:04 AM -0500 10/18/99, K P wrote:

> > foo = raw_input("bar:")
>
>
>then I later wanted to 'attach' it (or wrap it) to a GUI (using Tkinter
>for example), would that line (foo = raw_input("bar") still accept
>input from the GUI partion, or would it need to be re-written to
>accept input from the appropriate widget?

Depends on the GUI.  If you're using the MacPython IDE, raw_input 
automatically pops up a dialog box to get the user's response.  But I 
don't know about other GUIs.

Cheers,
-- Joe

,------------------------------------------------------------------.
|    Joseph J. Strout           Biocomputing -- The Salk Institute |
|    joe@strout.net             http://www.strout.net              |
`------------------------------------------------------------------'