Package parpg :: Package common :: Package listeners :: Module mouse_listener :: Class MouseListener
[hide private]
[frames] | no frames]

Class MouseListener

source code

object --+
         |
        MouseListener

Base class for listeners receiving mouse input

Instance Methods [hide private]
 
__init__(self, event_listener)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
attach(self, event_listener)
Attaches the listener to the event
source code
 
detach(self)
Detaches the listener from the event
source code
 
mousePressed(self, evt)
Called when a mouse button is pressed
source code
 
mouseReleased(self, evt)
Called when a mouse button is released
source code
 
mouseEntered(self, evt)
Called when a mouse enters a region
source code
 
mouseExited(self, evt)
Called when a mouse exits a region
source code
 
mouseClicked(self, evt)
Called after a mouse button is pressed and released
source code
 
mouseWheelMovedUp(self, evt)
Called when the mouse wheel has been moved up
source code
 
mouseWheelMovedDown(self, evt)
Called when the mouse wheel has been moved down
source code
 
mouseMoved(self, evt)
Called when when the mouse has been moved
source code
 
mouseDragged(self, evt)
Called when dragging the mouse
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, event_listener)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)