March 2018
Beginner to intermediate
422 pages
10h 33m
English
In the previous section, you had a look at how to bind an event to an instance of a widget. This can be called an instance-level binding.
However, there may be times when you need to bind events to an entire application. At times, you may want to bind an event to a particular class of widget. Tkinter provides the following levels of binding options for this:
widget.bind_all(event, callback, add=None)
The typical usage pattern is as follows:
root.bind_all('<F1>', show_help)
Application-level ...
Read now
Unlock full access