Re: Enter Enter... troubles

2007-02-17 Thread Sorin Schwimmer
It works, thanks.

Sorin



 

Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Enter Enter... troubles

2007-02-15 Thread Hendrik van Rooyen
 Sorin Schwimmer  wrote:

8<-
>   def handler(self,event):
>self.aButton.unbind('')
>self.aButton.unbind('')
8<-
>
>The idea is to prevent a fast user (like my boss) to press repeatedly the
"enter"
>key and create havoc with self.property and localVar. But it doesn't work: my
>boss manages to start at least twice the handler (which, among other things
>creates a Toplevel, so I end up with a messy screen).

I would have separate handlers for the two keys - should be slightly faster..

I generally use configure to change the button's command to a do nothing thing
to sort out the multiple click maniacs.

hth - Hendrik

-- 
http://mail.python.org/mailman/listinfo/python-list