November 2015
Beginner to intermediate
340 pages
7h 29m
English
In addition to the
bind method that you previously saw, you might find the following two event-related options useful in certain cases:
unbind option to undo the effect of an earlier binding. The syntax is as follows:widget.unbind(event)
The following are some examples of its usage:
entry.unbind('<Alt-Shift-5>')
root.unbind_all('<F1>')
root.unbind_class('Entry', '<KeyPress-Del>')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 syntax: ...
Read now
Unlock full access