Redirect events
Oswaldo Hernández
listas at soft-com.es
Wed Mar 14 09:36:37 PDT 2007
Hi,
I'm triying redirect events from an widget to anohter widget.
Example: Redirect EVT_CHAR received from an TextCtrl to anohter TextCtrl
I try:
....
self.Text1.Bind(wx.EVT_CHAR, self.OnText1Char)
def OnText1Char(self, evt):
ev2 = evt.Clone()
ev2.SetEventObject(self.Text2)
self.GetEventHandler().ProcessEvent(ev2)
but no works.
Any tip?
Thanks
--
*****************************************
Oswaldo Hernández
oswaldo (@) soft-com (.) es
*****************************************
More information about the wxpython-users
mailing list