Package horizons :: Package gui :: Package keylisteners :: Module keyconfig :: Class KeyConfig
[hide private]
[frames] | no frames]

Class KeyConfig

source code

Class for storing key bindings. The central function is translate().

Instance Methods [hide private]
 
__init__(self) source code
 
loadKeyConfiguration(self) source code
 
translate(self, evt) source code
 
get_key_by_name(self, keyname) source code
 
get_keys_by_name(self) source code
 
get_keys_by_value(self) source code
 
get_keyval_to_actionid_map(self) source code
 
get_current_keys(self, action) source code
 
get_default_keys(self, action) source code
 
get_actions_by_name(self)
Returns a list of the names of all the actions
source code
 
get_bindable_actions_by_name(self)
Returns a list of the names of the actions which can be binded in the hotkeys interface
source code
Class Variables [hide private]
  _Actions = Enum('LEFT', 'RIGHT', 'UP', 'DOWN', 'ROTATE_LEFT', ...
Method Details [hide private]

translate(self, evt)

source code 
Parameters:
  • evt - fife.Event @return pseudo-enum _Action

Class Variable Details [hide private]

_Actions

Value:
Enum('LEFT', 'RIGHT', 'UP', 'DOWN', 'ROTATE_LEFT', 'ROTATE_RIGHT', 'SP\
EED_UP', 'SPEED_DOWN', 'PAUSE', 'ZOOM_IN', 'ZOOM_OUT', 'BUILD_TOOL', '\
DESTROY_TOOL', 'ROAD_TOOL', 'PIPETTE', 'PLAYERS_OVERVIEW', 'SETTLEMENT\
S_OVERVIEW', 'SHIPS_OVERVIEW', 'LOGBOOK', 'CHAT', 'QUICKSAVE', 'QUICKL\
OAD', 'ESCAPE', 'TRANSLUCENCY', 'TILE_OWNER_HIGHLIGHT', 'HEALTH_BAR', \
'SHOW_SELECTED', 'REMOVE_SELECTED', 'HELP', 'SCREENSHOT', 'DEBUG', 'CO\
NSOLE', 'GRID', 'COORD_TOOLTIP')