[Tutor] How to set up comboboxes

Fred Schroeder fred@petlab.ptech.okstate.edu
Mon, 08 Jan 2001 14:04:50 -0600

I have a question on setting up comboboxes, or listboxes with Tkinter.
In my program, I want the user to select one of the fifty states in combo1,
and based on this, select a city from combo2, armed with this information,
the program will open an ascii datafile for the location.  There will be
about 10 cities for each state, is there a better way to specify what should
show up in combo2 than 50 if statements?  Also, how do I set the comboboxes
so that the user can not enter information into them.