tkinter: drop-down widget

James Stroud jstroud at ucla.edu
Thu Dec 15 21:56:07 CET 2005


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.



More information about the Python-list mailing list