Core Application Code (__main__.py
)¶
Entry point and main loop
- class QuickTileApp(winman, commands, keys, modmask='')[source]¶
The basic Glib application itself.
- Parameters:
commands (
CommandRegistry
) – The command registry to use to resolve command names.keys (
Dict
[str
,str
]) – A dict mappingGtk.accelerator_parse()
strings to command names.modmask (
str
) – A modifier mask to prepend to allkeys
.winman (
WindowManager
) – The window manager to invoke commands with so they can act.
- run()[source]¶
Initialize keybinding and D-Bus if available, then call
Gtk.main()
.
- argparser()[source]¶
argparse.ArgumentParser
definition that is compatible with sphinxcontrib.autoprogram- Return type:
- main()[source]¶
setuptools-compatible entry point
- Raises:
XInitError – Failed to connect to the X server.
- Return type:
- wnck_log_filter(domain, level, message, userdata=None)[source]¶
A custom function for
GLib.log_set_handler()
which filters out the spurious error about_OB_WM_ACTION_UNDECORATE
being un-handled.- Parameters:
domain (
str
) – The logging domain. Should beWnck
.level (
GLib.LogLevelFlags
) – The logging level Should beGLib.LogLevelFlags.LEVEL_WARNING
.message (
str
) – The error messageuserdata (
object
) – Required by the API but unused.
Thanks to Thomas Vander Stichele for some of the documentation cleanups during the GTK+ 2.x era.