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 mapping Gtk.accelerator_parse() strings to command names.

  • modmask (str) – A modifier mask to prepend to all keys.

  • 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().

Return type:

bool

Returns:

False if none of the supported backends were available.

show_binds()[source]

Print a formatted readout of defined keybindings and the modifier mask to stdout.

Return type:

None

argparser()[source]

argparse.ArgumentParser definition that is compatible with sphinxcontrib.autoprogram

Return type:

ArgumentParser

main()[source]

setuptools-compatible entry point

Raises:

XInitError – Failed to connect to the X server.

Return type:

None

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:

Thanks to Thomas Vander Stichele for some of the documentation cleanups during the GTK+ 2.x era.