| Home | Trees | Index | Help |
|
|---|
| Package wx :: Package lib :: Module evtmgr :: Class EventManager |
|
| Method Summary | |
|---|---|
__init__(self)
| |
Registers a listener function (or any callable object) to receive events of type event coming from the source window. | |
Deregister any entries relating to dead wxPython objects. | |
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 objects. | |
Return a dictionary with data about my state. | |
Registers a listener function (or any callable object) to receive events of type event coming from the source window. | |
Registers a listener function (or any callable object) to receive events of type event coming from the source window. | |
| Method Details |
|---|
Bind(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)
|
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)
|
Subscribe(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)
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1.20040428.rpd on Tue Nov 9 17:03:17 2004 | http://epydoc.sf.net |