Tkinter listbox selection handling

Tim Daneliuk tundra at tundraware.com
Sun Nov 10 14:10:07 EST 2002


ID5 wrote:
<SNIP>

> Try this:
> 
> def handlerfunc(Index):
>         NewIndex = UI.listbox.nearest(Index.y)
>         print UI.listbox.get(NewIndex)
> 
> ID5~~

Very clever - and it works great.  Thank you.
-- 
------------------------------------------------------------------------------
Tim Daneliuk
tundra at tundraware.com




More information about the Python-list mailing list