[Tkinter-discuss] Adding <Command-Button-1> to a Listbox

Bob Greschke bob at passcal.nmt.edu
Tue May 26 18:31:26 CEST 2009


I'd like to add <Command-Button-1> (i.e. use the Command key on a Mac)  
event handling to a Listbox so that it behaves just like the <Control- 
Button-1> "built-in" behavior (selecting/deselecting individual items  
when the selectmode is EXTENDED).  What should the bind statement call  
to do that?   Can it be done through something like an option_add so  
it applies to all listboxes in an application?

Thanks!

Bob



More information about the Tkinter-discuss mailing list