Package horizons :: Package gui :: Package modules :: Module hotkeys_settings :: Class HotkeyConfiguration
[hide private]
[frames] | no frames]

Class HotkeyConfiguration

source code

Instance Methods [hide private]
 
__init__(self) source code
 
_build_interface(self) source code
 
_create_button(self, action, index)
Important! The button name is set to index so that when a button is pressed, we know its index
source code
 
_detect_click_on_button(self, button, column)
Starts the listener and remembers the position and index of the pressed button
source code
 
_detect_keypress(self, event) source code
 
update_buttons_text(self) source code
 
apply_change(self)
Binds the last keypress to the corresponding action and resets the interface to the state where it is listening for clicks on buttons
source code
 
key_name(self, key) source code
 
key_is_set(self, key) source code
 
get_current_bindings(self)
Returns a dict mapping action -> list of keys
source code
 
get_action_name(self, key) source code
 
reset_to_default(self)
Resets all bindings to default
source code
 
save_settings(self)
Saves the settings and reloads the keyConfiguration so that the settings take effect without a restart
source code
 
show(self) source code
 
hide(self) source code