Functions¶
|
|
|
|
|
Details¶
- Keybinder.bind(keystring, handler, *user_data)¶
- Parameters:
keystring (
str
) – an accelerator description (gtk_accelerator_parse() format)handler (
Keybinder.Handler
) – callback function
- Returns:
True
if the accelerator could be grabbed- Return type:
Grab a key combination globally and register a callback to be called each time the key combination is pressed.
New in version 0.3.0.
- Keybinder.init()¶
Initialize the keybinder library.
This function must be called after initializing GTK, before calling any other function in the library. Can only be called once.