def spin_up_event(self, widget): """ Simulate a click on the 'up' spin button. """ event = wx.SpinEvent(wx.EVT_SPIN_UP.typeId) widget.OnSpinUp(event) self.process_wx_events(wx.GetApp())
def spin_down_event(self, widget): """ Simulate a click on the 'down' spin button. """ event = wx.SpinEvent(wx.EVT_SPIN_DOWN.typeId) widget.OnSpinDown(event) self.process_wx_events(wx.GetApp())
def _set_control_value(self, value): """ Toolkit specific method to set the control's value. """ self.control.SetValue(value) event = wx.SpinEvent(wx.EVT_SPINCTRL.typeId, self.control.GetId()) event.SetInt(value) wx.PostEvent(self.control.GetEventHandler(), event)
def __postEvent(self): wx.PostEvent(self, wx.SpinEvent(wx.wxEVT_COMMAND_SPINCTRL_UPDATED, self.GetId()))