Application
class FileHook (frame_info: FrameInfo, **kwargs)
Section titled “ FileHook ”Bases: object
classmethod from_here (depth: int = -1)Self
Section titled “ from_here ”attribute frame_info FrameInfo
Section titled “ frame_info ”attribute frame FrameType
Section titled “ frame ”attribute global_scope dict
Section titled “ global_scope ”attribute local_scope dict
Section titled “ local_scope ”attribute file_path str
Section titled “ file_path ”def execute (source: str, raise_on_exception: bool = False)Exception | None
Section titled “ execute ”def evaluate (code: str, raise_on_exception: bool = False)
Section titled “ evaluate ”def is_class (class_name: str | object)
Section titled “ is_class ”class DBusClient (application: Application, connection: DBusConnection, *args, **kwargs)
Section titled “ DBusClient ”Bases: object
class Application (name: str = 'default', *windows: Window, open_client: bool = True, open_inspector: bool = False, **kwargs)
Section titled “ Application ”class Application (*windows: Window, open_client: bool = True, open_inspector: bool = False, **kwargs)
Section titled “ Application ”Bases: Application, Service
def activated
Section titled “ activated ”def actions
Section titled “ actions ”def style_providers
Section titled “ style_providers ”def name
Section titled “ name ”def windows
Section titled “ windows ”def remove_window (self, window: Gtk.Window)
Section titled “ remove_window ”def add_window (self, window: Gtk.Window)
Section titled “ add_window ”def dispatch_windows ()
Section titled “ dispatch_windows ”def quit (self)
Section titled “ quit ”def run (self, argv: list = None)int
Section titled “ run ”def open_inspector ()
Section titled “ open_inspector ”def get_actions (*args, _prop=<GObject Property actions (PyObject)>, **kwargs)
Section titled “ get_actions ”def get_activated (*args, _prop=<GObject Property activated (gboolean)>, **kwargs)
Section titled “ get_activated ”def get_name (*args, _prop=<GObject Property name (gchararray)>, **kwargs)
Section titled “ get_name ”def get_style_providers (*args, _prop=<GObject Property style-providers (PyObject)>, **kwargs)
Section titled “ get_style_providers ”def get_windows (self)list
Section titled “ get_windows ”def set_actions (value, *args, _prop=<GObject Property actions (PyObject)>, **kwargs)
Section titled “ set_actions ”def set_activated (value, *args, _prop=<GObject Property activated (gboolean)>, **kwargs)
Section titled “ set_activated ”def set_name (value, *args, _prop=<GObject Property name (gchararray)>, **kwargs)
Section titled “ set_name ”def set_style_providers (value, *args, _prop=<GObject Property style-providers (PyObject)>, **kwargs)
Section titled “ set_style_providers ”def set_windows (value, *args, _prop=<GObject Property windows (PyObject)>, **kwargs)
Section titled “ set_windows ”static validate_name (name: str)bool
Section titled “ validate_name ”static name_running (name: str)bool
Section titled “ name_running ”static get_dbus_proxy (config_name: str | None = None)DBusProxy | None
Section titled “ get_dbus_proxy ”def add_style_provider (provider: StyleProvider, priority: Literal['fallback', 'theme', 'settings', 'application', 'user'] | int = Gtk.STYLE_PROVIDER_PRIORITY_USER)None
Section titled “ add_style_provider ”def remove_style_provider (provider: StyleProvider)None
Section titled “ remove_style_provider ”def reset_styles ()None
Section titled “ reset_styles ”def set_style_provider (provider: StyleProvider, priority: Literal['fallback', 'theme', 'settings', 'application', 'user'] | int = Gtk.STYLE_PROVIDER_PRIORITY_USER)None
Section titled “ set_style_provider ”def set_stylesheet_from_file (file_path: str, compile: bool = True, append: bool = False, *args, **kwargs)None
Section titled “ set_stylesheet_from_file ”def set_stylesheet_from_string (style_string: str, compile: bool = True, append: bool = False, *args, **kwargs)None
Section titled “ set_stylesheet_from_string ”static action (name: str | None = None)
Section titled “ action ”An action is an alternative way for calling userspace defined functions through the dbus client (or cli) actions make it easier for calling functions defined in modules rather than your config’s entry point
- Parameters: name (str | None , optional) — a name to register this action with, if none, use the function’s name converted to kebab case, defaults to None