示例#1
0
文件: ctrlbox.py 项目: Angell1/mycura
    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
示例#2
0
    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
示例#3
0
 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)
示例#4
0
 def test_NotifyEvent_ctor(self):
     evt = wx.NotifyEvent()
示例#5
0
 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)
示例#6
0
    def __send_mode_change_event(self):
        event = wx.NotifyEvent(EVT_NAV_MODE_CHANGE.evtType[0])

        event.EventObject = self

        self.GetEventHandler().ProcessEvent(event)