Re: [Tutor] How to allow user to choose an option from a window

2006-12-12 Thread Jason Massey
If you mean which type of GUI model to use you have at least two popular choices. Tkinter: It's bundled with Python, and there's a tutorial at: http://www.pythonware.com/library/tkinter/introduction/ wxPython: My GUI of choice. http://wxpython.org A quick and dirty example in wxPython of what y

[Tutor] How to allow user to choose an option from a window

2006-12-12 Thread Urban . Landreman
I'm trying to allow a user to select one option from a list. My simple code works: OptionList = ['One', 'Two', 'Three'] while 1: print 'Here are your options:' for option in OptionList: print option optionChosen = raw_input("Which one do you want? ") if optionChosen in OptionList: