Home | Trees | Indices | Help |
---|
|
object --+ | _Ctype --+ | EventManager
Create an event manager with callback handler.
This class interposes the registration and handling of event notifications in order to (a) remove the need for decorating each callback functions with the decorator '@callbackmethod', (b) allow any number of positional and/or keyword arguments to the callback (in addition to the Event instance) and (c) to preserve the Python objects such that the callback and argument objects remain alive (i.e. are not garbage collected) until after the notification has been unregistered.
Note: Only a single notification can be registered for each event type in an EventManager instance.
|
|||
|
|||
|
|||
Inherited from |
|
|||
a new object with type S, a subtype of T |
|
||
Inherited from |
|
|||
_callback_handler = None
|
|||
_callbacks =
|
|
|||
Inherited from |
|
|
Register an event notification.
Note: The callback function must have at least one argument, an Event instance. Any other, optional positional and keyword arguments are in addition to the first one. Warning: libvlc is not reentrant, i.e. you cannot call libvlc functions from an event handler. They must be called from the main application thread. |
Unregister an event notification.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sat Jul 25 13:13:08 2020 | http://epydoc.sourceforge.net |