Problem binding <Up> and <Down> events

Fredrik Lundh fredrik at pythonware.com
Tue Apr 27 11:47:53 EDT 2004


Jonathonwe McKitrick wrote:

> I have a listbox with <Double-Button-1> bound to bring up an edit dialog.
> But <Up> and <Down> do not work.

(in the dialog?  in the listbox?  on the keyboard?)

>  I have a debug print statement, and the program never reaches the event
> handler.  I've tried handlers with 'event' arguments and with no arguments,
> but neither works.
>
> Is there something I am missing here?

if a keyboard binding doesn't work as you expect it to, it's usually because
focus is somewhere else.  when in doubt, add a widget.focus_set() call to
the appropriate location.

</F>







More information about the Python-list mailing list