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