Esempio n. 1
0
    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())
Esempio n. 2
0
    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())
Esempio n. 3
0
 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)
Esempio n. 4
0
 def __postEvent(self):
     wx.PostEvent(self, wx.SpinEvent(wx.wxEVT_COMMAND_SPINCTRL_UPDATED, self.GetId()))