__init__(self,
callback,
cbdata=(),
priority=50,
button=None,
buttons=None,
rect=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.
button -
If specified, then only report events that use the given mouse
button.
buttons -
If specified, then only report events that use one of the
given mouse buttons.
rect -
If specified, then only report events whose position is inside
the given rectangle.
- Overrides:
pajammin.input.Listener.__init__
|