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
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
Returns a dict mapping action -> list of keys
source code
get_action_name(self, key) source code
Resets all bindings to default
source code
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