[Python-bugs-list] [ python-Bugs-627798 ] KeyPress bindings don't work
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 27 Oct 2002 05:28:57 -0800
Bugs item #627798, was opened at 2002-10-24 00:52
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=627798&group_id=5470
Category: Tkinter
Group: Python 2.2.2
>Status: Closed
>Resolution: Wont Fix
Priority: 7
Submitted By: Roman Khramets (reaux74)
Assigned to: Nobody/Anonymous (nobody)
Summary: KeyPress bindings don't work
Initial Comment:
Hi,
I don't think keypress bindings work properly in
Tkinter. When I bind "<Any-KeyPress>" to a method of a
Frame-derived class, it does not work under Windows XP
(not sure about other OSes).
Here is a code snippet I am using. Please, see the file
attached for the actual code.
Thanks,
..Roman
----------------------------------------------------------------------
>Comment By: Fredrik Lundh (effbot)
Date: 2002-10-27 14:28
Message:
Logged In: YES
user_id=38376
the canvas doesn't have keyboard focus, so all keyboard
events goes elsewhere. to move focus to the canvas, call
self.canvas.focus_set() at the appropriate place (e.g. in the
onButton1 handler)
</F>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=627798&group_id=5470