def __init__(self, etype, id=0): super(SegmentBarEvent, self).__init__(etype, id) # Attributes self.notify = wx.NotifyEvent(etype, id) self._pre = -1 self._cur = -1
def __init__(self, etype, id=0): wx.PyCommandEvent.__init__(self, etype, id) # Attributes self.notify = wx.NotifyEvent(etype, id) self._pre = -1 self._cur = -1
def notify_selection_changed(self): '''Publish a WX event that tells the world that the selection changed''' event = wx.NotifyEvent(EVT_PLC_SELECTION_CHANGED.evtType[0]) event.EventObject = self self.GetEventHandler().ProcessEvent(event)
def test_NotifyEvent_ctor(self): evt = wx.NotifyEvent()
def __init__(self, type, id, node=None, nodes=None, **kwargs): apply(MVCTreeEvent.__init__, (self, type, id, node, nodes), kwargs) self.notify = wx.NotifyEvent(type, id)
def __send_mode_change_event(self): event = wx.NotifyEvent(EVT_NAV_MODE_CHANGE.evtType[0]) event.EventObject = self self.GetEventHandler().ProcessEvent(event)