 
       wx.lib.evtmgr.EventManager¶
  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.
 Methods Summary¶
 Methods Summary¶| __init__ | |
| DeregisterDeadTopics | Deregister any entries relating to dead | 
| DeregisterListener | Deregister all event notifications for the given listener. | 
| DeregisterWindow | Deregister all events coming from the given window. | 
| GetDeadTopics | Return a list of topics relating to dead wxPython | 
| GetStats | Return a dictionary with data about my state. | 
| Register | Registers a listener function (or any callable object) to | 
 Class API¶
 Class API¶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.
__init__(self)¶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)