self.header = wx.TextCtrl(self.parent, wx.ID_ANY, “textures”, style=wx.TE_CENTER)
self.header.Bind(wx.EVT_KEY_UP, self.OnStringKeyUp)
The procedure “OnStringKeyUp” is getting fired on all the keys except ENTER and NUMPAD_ENTER. When user press either of keys, I would like to process the text entered in it.
When pressing either of two keys I am loosing focus from TextCtrl also. The TextCtrl is nested deep into AUI_pan>scrollwindow>panel.
Any idea?
Prashant
···
Add more friends to your messenger and enjoy! Invite them now.
I guess, adding wx.TE_PROCESS_ENTER to the style definition of your
TextCtrl widget might solve the problem.
hth
vbr
···
2008/12/6 Prashant Saxena <animator333@yahoo.com>:
self.header = wx.TextCtrl(self.parent, wx.ID_ANY, "textures",
style=wx.TE_CENTER)
self.header.Bind(wx.EVT_KEY_UP, self.OnStringKeyUp)
The procedure "OnStringKeyUp" is getting fired on all the keys except ENTER
and NUMPAD_ENTER. When user press either of keys, I would like to process
the text entered in it.
When pressing either of two keys I am loosing focus from TextCtrl also. The
TextCtrl is nested deep into AUI_pan>scrollwindow>panel.
Any idea?
Prashant
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users