Package libavg :: Module avg :: Class MouseEvent

Class MouseEvent




Raised when a mouse-related event occurs.

Instance Methods

Inherited from Event: __init__

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties
  button
The button that caused the event (ro).
  cursorid
Always 0 for mouse events, but can be used to handle mouse and tracking events at once (ro).
  leftbuttonstate
  middlebuttonstate
  node
The node that the event handler was declared in (ro).
  rightbuttonstate
  source
Always MOUSE
  x
x position in the global coordinate system (ro).
  y
y position in the global coordinate system (ro).

Inherited from Event: type, when

Inherited from object: __class__

Property Details

button

The button that caused the event (ro).
Get Method:
unreachable(...)

cursorid

Always 0 for mouse events, but can be used to handle mouse and tracking events at once (ro).
Get Method:
unreachable(...)

leftbuttonstate

Get Method:
unreachable(...)

middlebuttonstate

Get Method:
unreachable(...)

node

The node that the event handler was declared in (ro).
Get Method:
unreachable(...)

rightbuttonstate

Get Method:
unreachable(...)

source

Always MOUSE
Get Method:
unreachable(...)

x

x position in the global coordinate system (ro).
Get Method:
unreachable(...)

y

y position in the global coordinate system (ro).
Get Method:
unreachable(...)