Press enter key trigger an OK button?
Thomas Thomas
thomas at eforms.co.nz
Thu Jun 1 19:20:15 PDT 2006
something that worked for me
self.textCtrl2 =3D wx.TextCtrl(id=3DwxID_WXDIALOG1TEXTCTRL2,
name=3D'textCtrl2', parent=3Dself.panel1, pos=3Dwx.Point(107,=
85),
size=3Dwx.Size(144, 21), style=3Dwx.TE_PROCESS_ENTER| wx.TE_P=
ASSWORD,
value=3Du'')
self.textCtrl2.Bind(wx.EVT_TEXT_ENTER, self.OnTextCtrl2TextEnter,
id=3DwxID_WXDIALOG1TEXTCTRL2)
def OnTextCtrl2TextEnter(self, event):
#login stuffs goes here+
event.Skip()
-----------------------------------------------------
Thomas Thomas
phone +64 7 855 8478
fax +64 7 855 8871
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200606=
02/5989d850/attachment.htm
More information about the wxpython-users
mailing list