Tkinter: bind Alt + mouse click

Will Stuyvesant hwlgw at
Sun Sep 29 16:23:55 EDT 2002

[Ulrich Goertz]
> I am puzzled why I cannot bind events of the type "Alt" button press plus
> mouse click. 

Those Alt-keycombos are probably catched by a master widget.  It could
help if you do


this assumes self is your widget and you have the master widget saved
in a .master attribute, as many widgets do in their __init__

A major, with wonderful force,
Called out in Hyde Park for a horse.
        All the flowers looked round,
        But no horse could be found;
So he just rhododendron, of course.

More information about the Python-list mailing list