Tkinter listbox selection handling

Tim Daneliuk tundra at tundraware.com
Mon Nov 11 14:00:07 EST 2002


Martin Franklin wrote:
<SNIP>

>>Then I add a handler:
>>
>>UI.listbox.bind('<button-1>', handlerfunc)
> 
> 
> 
> Try this...
> 
> UI.listbox.bind("<ButtonRelease-1>", handlerfunc)


I had tried this as well - same problem.  The use of listbox.nearest(event.y)
suggested here seemed to work best.


-- 
------------------------------------------------------------------------------
Tim Daneliuk
tundra at tundraware.com




More information about the Python-list mailing list