[wxPython-users] wx.EVT_TEXT_ENTER
Robin Dunn
robin at alldunn.com
Tue Feb 5 14:55:29 PST 2008
Aigars wrote:
> On Tuesday 05 February 2008 19:13:48 Andrea Gavana wrote:
>
>> You need to pass wx.TE_PROCESS_ENTER style to your wx.TextCtrl,
>> otherwise no processing of the "Enter" key is possible.
>>
>
>> self.text_Date = wx.TextCtrl(self.panel_1, -1, "",
> style=wx.TE_PROCESS_ENTER)
>
> Thank you, now it looks like working.
>
> Some more questions:
> 1) No wx.TE_PROCESS_ENTER was needed on Windows version of wxPython. If I
> rewrite code with wx.TE_PROCESS_ENTER, will it work on Windows?
Yes, and there are probably some situations where it would be required
like on the other platforms.
> 2) If i want to confirm update of TextCtrl with any of keys [Tab, Enter,
> Arrow] what I should pass to TextCtrl before that?
wx.WANTS_CHARS will probably do it.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list