Monday, July 1, 2013

Stacking event bindings in tkinter

To stack events in Tkinter one should use the add='+' keyword (from here):
widget.bind("", callback1)
widget.bind("", callback2, add="+")
If you don't use the add='+' in the second call, then the first callback binding gets overwritten

No comments:

Post a Comment