Dazzle.Application¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Application (21), Gio.Application (37), GObject.Object (37), Gio.ActionGroup (14), Gio.ActionMap (5)
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Application (2), Gio.Application (15), GObject.Object (7), Gio.ActionGroup (14), Gio.ActionMap (3)
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
|||
r |
|||
r |
Signals¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Dazzle.Application(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(application_id, flags)¶
- Parameters:
application_id (
str
) –flags (
Gio.ApplicationFlags
) –
- Return type:
- add_resources(resource_path)¶
- Parameters:
resource_path (
str
) – the location of the resources.
This adds resource_path to the list of “automatic resources”.
If resource_path starts with “resource://”, then the corresponding
Gio.Resources
path will be searched for resources. Otherwise, resource_path should be a path to a location on disk.The
Dazzle.Application
will locate resources such as CSS themes, icons, and keyboard shortcuts using resource_path.
-
Similar to
Gtk.Application.get_menu_by_id
() but takes into account menu merging which could have occurred upon loading plugins.
- Returns:
- Return type:
Gets the menu manager for the application.
- get_shortcut_manager()¶
- Returns:
- Return type:
Gets the
Dazzle.ShortcutManager
for the application.
- get_theme_manager()¶
- Returns:
- Return type:
Get the theme manager for the application.
- remove_resources(resource_path)¶
- Parameters:
resource_path (
str
) – the location of the resources.
This attempts to undo as many side-effects as possible from a call to
Dazzle.Application.add_resources
().
- do_add_resources(resource_path) virtual¶
- Parameters:
resource_path (
str
) – the location of the resources.
This adds resource_path to the list of “automatic resources”.
If resource_path starts with “resource://”, then the corresponding
Gio.Resources
path will be searched for resources. Otherwise, resource_path should be a path to a location on disk.The
Dazzle.Application
will locate resources such as CSS themes, icons, and keyboard shortcuts using resource_path.
- do_remove_resources(resource_path) virtual¶
- Parameters:
resource_path (
str
) – the location of the resources.
This attempts to undo as many side-effects as possible from a call to
Dazzle.Application.add_resources
().
Property Details¶
- Name:
menu-manager
- Type:
- Default Value:
- Flags:
- Dazzle.Application.props.shortcut_manager¶
- Name:
shortcut-manager
- Type:
- Default Value:
- Flags:
- Dazzle.Application.props.theme_manager¶
- Name:
theme-manager
- Type:
- Default Value:
- Flags: