Wxpython & threads: how to simulate wx.EVT_BUTTON trigger?
1 answer
The class wx.Control
(base class wx.Button
) has a function Command
that simulates a command event. Try this
event = wx.CommandEvent(wx.EVT_COMMAND_BUTTON_CLICKED, self.wxctrl.GetId())
self.wxctrl.Command(event)
I'm not sure about the python syntax (programming in C ++ versions of wxWidgets). But this is a rough plan.
0
a source to share