James Stroud wrote: > Alex Hunsley wrote: > >>Can anyone recommend some code for creating drop-down menus in tkinter? >>To be absolutely clear, here's an example of a drop-down: >> >>http://www.google.co.uk/preferences?hl=en >>(see the language selection widget) >> >>I've found the odd bit of code here and there, such as: >>http://infohost.nmt.edu/tcc/cgi/pre.cgi?file=/u/www/docs/tcc/help/lang/python/mapping/dropdown.py >> >> >> >>alex > > > Try: > > 1. Tkinter OptionMenu: > http://effbot.org/tkinterbook/optionmenu.htm > > 2. Pmw OptionMenu: > http://pmw.sourceforge.net/doc/OptionMenu.html > > I would opt for these before a roll-your-own version.
try searching for a ComboBox I think you will have more hits I know Pmw has one, it is also quite easy to build your own with an Entry, Button and Listbox widget + some nifty code ;) Cheers, Martin. -- http://mail.python.org/mailman/listinfo/python-list