Here is Andrea's example but using Navigate:
def OnKey(self, event):
if event.GetKeyCode() == wx.WXK_RETURN and not self.IsMultiLine():
if event.ShiftDown():
self.Navigate(wx.NavigationKeyEvent.IsBackward)
else:
self.Navigate()
event.Skip()
···
-----Original Message-----
From: egbert [mailto:egbert.bouwman@hccnet.nl]
Sent: Sunday, September 10, 2006 4:40 AM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] Make RETURN work like TAB
On Fri, Sep 08, 2006 at 02:58:42PM -0700, Robin Dunn wrote:
There is now a convenience method that will make and send the
navigation event for you. Take a look at the docs for
wx.Window.Navigate.
The docs are too concise for me.
Can you show how to do it in this case, ie let RETURN function like TAB
in single line TextCtrl's ?
egbert
--
Egbert Bouwman - Keizersgracht 197 II - 1016 DS Amsterdam - 020 6257991
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org