wx.lib.evtmgr.EventManager¶
This is the main class in the module, and is the only class that the application programmer needs to use. There is a pre-created instance of this class called ‘eventManager’. It should not be necessary to create other instances.
Class Hierarchy¶
Methods Summary¶
Initialize self. See help(type(self)) for accurate signature. |
|
Deregister any entries relating to dead |
|
Deregister all event notifications for the given listener. |
|
Deregister all events coming from the given window. |
|
Return a list of topics relating to dead wxPython |
|
Return a dictionary with data about my state. |
|
Registers a listener function (or any callable object) to |
Class API¶
- class EventManager¶
This is the main class in the module, and is the only class that the application programmer needs to use. There is a pre-created instance of this class called ‘eventManager’. It should not be necessary to create other instances.
Methods¶
- __init__(self)¶
Initialize self. See help(type(self)) for accurate signature.
- DeregisterDeadTopics(self)¶
Deregister any entries relating to dead wxPython objects. Not sure if this is an important issue; 1) My app code always de-registers listeners it doesn’t need. 2) I don’t think that lingering references to these dead objects is a problem.
- DeregisterListener(self, listener)¶
Deregister all event notifications for the given listener.
- DeregisterWindow(self, win)¶
Deregister all events coming from the given window.
- GetDeadTopics(self)¶
Return a list of topics relating to dead wxPython objects.
- GetStats(self)¶
Return a dictionary with data about my state.
- Register(self, listener, event, source=None, win=None, id=None)¶
Registers a listener function (or any callable object) to receive events of type event coming from the source window. For example:
eventManager.Register(self.OnButton, EVT_BUTTON, theButton)
Alternatively, the specific window where the event is delivered, and/or the ID of the event source can be specified. For example:
eventManager.Register(self.OnButton, EVT_BUTTON, win=self, id=ID_BUTTON)
or:
eventManager.Register(self.OnButton, EVT_BUTTON, theButton, self)