where to hold mouse button state in Tkinter?

Pedro Jones calroc at mindspring.com
Sun Feb 27 11:50:50 CET 2000


I'm writing a widget that needs to detect in it's callback for a
<Button-1> event whether or not one or both of the other mouse buttons
are pressed and take different actions depending. What's a good way to
access mouse state of the other buttons in the callback for one? Does
Tk/Tkinter provide something easy I've overlooked?




More information about the Python-list mailing list