[Tutor] Events in tkinter
Tue Apr 1 12:43:01 2003
Tks for the help, I already done the event.
I said used this in classes because I maked a simple example and it
works but in my program because of the classes it was not working.
The names its just an example. I translate for english to be easier for
people in the list understand, the names in my program are in portuguese.
>>How can I create the following event using classes?
>>I want to type "control o", for example, and it call this function.
>It seems to me that classes is kind of irrelevant to the question,
>why do you think that classes are needed?
>What you need to do is bind the keypress even of some widget to
>the open function (but please rename it coz there are already
>open() functions in Python and that will get very confusing!)
>As an example of catching ctrl characters from a Tk widget take
>a look at my Event Driven Programming tutor topic (it also uses
>Author of the Learn to Program website
>Tutor maillist - Tutor@python.org