1.1.16. shortcuts

1.1.16.1. class Shortcuts

Shortcuts.__init__()
Create the shortcuts manager instance.
Shortcuts.load_from_config()
Load all shortcut entries from config and store it as Shortcut instances in items dict.
Shortcuts.save_to_config()

Warning

no doctring or additional documentation, too bad.

Shortcuts.callback_decode(callback)

Get a shortcut callback in config format and return it as real cb.

callback: Shortcut callback string in 'type:name' format.
RETURNS: Real callback function.
Shortcuts.push()
Update (really create each time) the GTK window shortcuts list from stored shortcut instances.

1.1.16.2. class Shortcut

Shortcut.__init__(key, mask, callback)
Create the shortcut instance.

Table Of Contents

Previous topic

1.1.15. presets

Next topic

1.2. gui — User interface

This Page