[Tutor] Events in tkinter
Diego Prestes
lobow@brturbo.com
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.
Diego
alan.gauld@bt.com wrote:
>>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
>classes FWIW).
>
>Alan g.
>Author of the Learn to Program website
>http://www.freenetpages.co.uk/hp/alan.gauld/
>
>_______________________________________________
>Tutor maillist - Tutor@python.org
>http://mail.python.org/mailman/listinfo/tutor
>
>
>
>