KeyboardShortcut¶
-
class
glue.config.KeyboardShortcut[source]¶ Bases:
glue.config.DictRegistryStores keyboard shortcuts. The members property is a dictionary within a dictionary of keyboard shortcuts, which is represented as (viewer,(keybind,function)). The
functionshould take one item, which is a reference to the session.Methods Summary
__call__(self, keybind, valid_viewers)This is provided so that registry instances can be used as decorators.
add(self, valid_viewers, keybind, function)Add a new keyboard shortcut
Methods Documentation