Misc#
- ignis.utils.get_current_dir() str #
Returns the directory of the Python file where this function is called.
- Return type:
- ignis.utils.load_interface_xml(interface_name: str | None = None, path: str | None = None, xml: str | None = None) gi.repository.Gio.DBusInterfaceInfo #
Load interface info from XML. If you want to load interface info from the path or XML string, you need to provide
path
andxml
as keyword arguments respectively.- Parameters:
- Raises:
TypeError -- If neither of the arguments is provided.
- Return type:
DBusInterfaceInfo
- Returns:
The interface information.
- ignis.utils.get_gdk_display() gi.repository.Gdk.Display #
Get the default
Gdk.Display
or raiseDisplayNotFoundError
if it'sNone
.- Return type:
Display
- Returns:
The default
Gdk.Display
.- Raises:
DisplayNotFoundError -- If
Gdk.Display.get_default()
returnedNone
.