[wxpython-users] How to send an event?
Raffaello Barella
barbarossa.platz at gmail.com
Sun Mar 30 08:53:44 PDT 2008
After many sleepless nights and tiresome endeavors, I cooked up and
successfully tested the full code for sending an event. If any of you is
interested , here it is:
cmd =3D wx.CommandEvent(wx.EVT_COMBOBOX.evtType[0])
# (if your control is not a wx.ComboBox, obviously change the event name,
and please write evtType exactly as I did)
cmd.SetEventObject(mycontrol)
cmd.SetId(mycontrol.GetId())
mycontrol.GetEventHandler().ProcessEvent(cmd)
Hi to everybody.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200803=
30/429e2e06/attachment.htm
More information about the wxpython-users
mailing list