Module Keyboard
[hide private]
[frames] | no frames]

Module Keyboard

source code

Defines a class representing a standard Keyboard input device and action code constants used to register filters on that device.


Authors:
Peter Parente, Scott Haeger, Frank Zenker
Organizations: Copyright:

License: The BSD License All rights reserved. This program and the accompanying materials are made available under the terms of the BSD license which accompanies this distribution, and is available at http://www.opensource.org/licenses/bsd-license.php

Classes [hide private]
  Keyboard
Basic keyboard input device.
Functions [hide private]
string
_keyCodeToKeyName(code)
Gets the name of the given key code by using the default key map to lookup its keysym value and then its localized name.
source code
Variables [hide private]
  DEBUG = False
gtk.gdk.Keymap def_keymap = gdk.keymap_get_default()
Default keymap for translation between key codes, keysyms, and key names
integer MAX_KEY_CHORD = 4
Maximum number of actions that can be in a keyboard gesture
  __uie__ = dict(kind= 'device')
Function Details [hide private]

_keyCodeToKeyName(code)

source code 
Gets the name of the given key code by using the default key map to lookup its keysym value and then its localized name. If the code is not known, an empty string is returned.
Parameters:
  • code (integer) - Hardware keycode
Returns: string
Name of the key