[ wxwindows-Bugs-1593414 ] wx.EVT_KEY_UP and wx.EVT_CHAR don't work for Return key

SourceForge.net noreply at sourceforge.net
Thu Nov 9 05:36:44 PST 2006


Bugs item #1593414, was opened at 2006-11-09 14:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1593414&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: wxgeo (wxgeo)
Assigned to: Nobody/Anonymous (nobody)
Summary: wx.EVT_KEY_UP and wx.EVT_CHAR don't work for Return key

Initial Comment:
Since version 2.7, wx.EVT_KEY_UP and wx.EVT_CHAR don't
catch Return key event anymore in my software.

def __init__(self):
    ...
    self.entree = wx.TextCtrl(self, size = (500, -1))
    self.entree.Bind(wx.EVT_KEY_UP, self.EvtChar)
    self.entree.Bind(wx.EVT_CHAR, self.EvtChar)
    ...


def EvtChar(self, event):
    print event.GetKeyCode()


I get nothing when [Return] key is pressed (but it
works well for other keys).
It worked also well with Wxpython 2.6.2.

I have the same problem with all TextCtrl widgets.
The TexCtrl widgets are in different Panels from a
Notebook item.

Configuration :
Windows XP SP2 build 2600
Python 2.4.3
WxPython 2.7.2.0 unicode




----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1593414&group_id=9863




More information about the wx-dev mailing list