tkinter: drop-down widget

Alex Hunsley lard at tardis.ed.ac.molar.uk
Thu Dec 15 10:14:19 EST 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 

This seems to work ok, except it's a little rough around the edges (e.g. 
the drop-down is a button with no visual affordance that it is a drop 
down, the button changes size depending on what is selected, etc...)

thanks
alex



More information about the Python-list mailing list