April 2018
Beginner
340 pages
7h 54m
English
The basic format of an event binding is as follows:
widget.bind('<Event-String>', function_name)
Each widget has the ability to listen to the system for one of many event types. Each event type has a particular string defined within Tkinter to allow it to be mapped over to the Python interface. When the event passed via this string occurs, the function passed as the second parameter is executed. Note that the function is passed and not executed, just like the command argument of a Button widget.
Read now
Unlock full access