In addition to the bind method that you previously saw, you might find the following two event-related options useful in certain cases:
- Unbind: Tkinter provides the unbind option to undo the effect of an earlier binding. The syntax is as follows:
The following are some examples of its usage:
- Virtual events: Tkinter also lets you create your own events. You can give these virtual events any name that you want. For example, let's suppose that you want to create a new event called <<commit>>, which is triggered by the F9 key. To create this virtual event on a given widget, use the following ...