Package libavg :: Module avg :: Class KeyEvent

Class KeyEvent


Raised when a key is pressed or released.

Instance Methods

Inherited from unreachable.instance: __new__

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

    Inherited from Event
 
__init__(...)
Raises an exception This class cannot be instantiated from Python
Properties
  keycode
The keycode of the key according to US keyboard layout (ro).
  keystring
A character or word describing the key pressed (ro).
  modifiers
Any modifier keys (shift, ctrl,...) pressed.
  scancode
The untranslated (hardware-dependent) scancode of the key pressed (ro).
  unicode
Unicode index of the character.

Inherited from object: __class__

    Inherited from Event
  type
One of KEYUP, KEYDOWN, CURSORMOTION, CURSORUP, CURSORDOWN, CURSOROVER, CURSOROUT, RESIZE or QUIT.
  when
The timestamp of the event in milliseconds.
Property Details

keycode

The keycode of the key according to US keyboard layout (ro).

Get Method:
unreachable(...)

keystring

A character or word describing the key pressed (ro).

Get Method:
unreachable(...)

modifiers

Any modifier keys (shift, ctrl,...) pressed. This is a number of KeyModifier values or'ed together (ro).

Get Method:
unreachable(...)

scancode

The untranslated (hardware-dependent) scancode of the key pressed (ro).

Get Method:
unreachable(...)

unicode

Unicode index of the character. Transparently dependent to modifiers, issued only on KEYDOWN event (ro).

Get Method:
unreachable(...)