__init__(self,
callback,
cbdata=(),
priority=50,
key=None,
keys=None)
(Constructor)
Construct a new listener.
-
- Parameters:
callback -
The listener's callback function. When an relevant event
occurs, this callback will be called with the event object, plus
any arguments specified in cbdata .
cbdata -
A tuple containing extra arguments for the callback
function.
priority -
The priority of this listener.
key -
If specified, then only report events that use the given
key.
keys -
If specified, then only report events that use one of the
given keys.
- Overrides:
pajammin.input.Listener.__init__
|