Dazzle.ShortcutTheme¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The name of the theme |
||
r/w |
The name of the parent shortcut theme |
||
r/w |
The subtitle of the theme as used for UI elements |
||
r/w |
The title of the theme as used for UI elements |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Dazzle.ShortcutTheme(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- add_context(context)¶
- Parameters:
context (
Dazzle.ShortcutContext
) –
- find_context_by_name(name)¶
- Parameters:
name (
str
) – The name of the context- Returns:
- Return type:
Gets the context named name. If the context does not exist, it will be created.
- find_default_context(widget)¶
- Parameters:
widget (
Gtk.Widget
) –- Returns:
An
Dazzle.ShortcutContext
orNone
.- Return type:
Finds the default context in the theme for widget.
- get_parent()¶
- Returns:
A
Dazzle.ShortcutTheme
orNone
.- Return type:
If the
Dazzle.ShortcutTheme
:parent-name
property has been set, this will fetch the parentDazzle.ShortcutTheme
.
- get_parent_name()¶
-
Gets the name of the parent shortcut theme.
This is used to resolve shortcuts from the parent theme without having to copy them directly into this shortcut theme. It allows for some level of copy-on-write (CoW).
- load_from_data(data, len)¶
- Parameters:
- Raises:
- Return type:
- load_from_file(file, cancellable)¶
- Parameters:
file (
Gio.File
) –cancellable (
Gio.Cancellable
orNone
) –
- Raises:
- Return type:
- load_from_path(path, cancellable)¶
- Parameters:
path (
str
) –cancellable (
Gio.Cancellable
orNone
) –
- Raises:
- Return type:
- save_to_file(file, cancellable)¶
- Parameters:
file (
Gio.File
) –cancellable (
Gio.Cancellable
orNone
) –
- Raises:
- Return type:
- save_to_path(path, cancellable)¶
- Parameters:
path (
str
) –cancellable (
Gio.Cancellable
orNone
) –
- Raises:
- Return type:
- save_to_stream(stream, cancellable)¶
- Parameters:
stream (
Gio.OutputStream
) –cancellable (
Gio.Cancellable
orNone
) –
- Raises:
- Return type:
- set_accel_for_action(detailed_action_name, accel, phase)¶
- Parameters:
detailed_action_name (
str
) –accel (
str
) –phase (
Dazzle.ShortcutPhase
) –
- set_accel_for_command(command, accel, phase)¶
- Parameters:
phase (
Dazzle.ShortcutPhase
) – the phase to activate within, or 0 for the default
This will set the command to execute when accel is pressed. If command is
None
, the accelerator will be cleared. If accelerator isNone
, all accelerators for command will be cleared.
- set_chord_for_action(detailed_action_name, chord, phase)¶
- Parameters:
detailed_action_name (
str
) –chord (
Dazzle.ShortcutChord
) –phase (
Dazzle.ShortcutPhase
) –
- set_chord_for_command(command, chord, phase)¶
- Parameters:
chord (
Dazzle.ShortcutChord
orNone
) – the chord for the commandphase (
Dazzle.ShortcutPhase
) – the phase to activate within, or 0 for the default
This will set the command to execute when chord is pressed. If command is
None
, the accelerator will be cleared. If chord isNone
, all accelerators for command will be cleared.
Property Details¶
- Dazzle.ShortcutTheme.props.name¶
- Name:
name
- Type:
- Default Value:
- Flags:
The name of the theme
- Dazzle.ShortcutTheme.props.parent_name¶
-
The name of the parent shortcut theme
- Dazzle.ShortcutTheme.props.subtitle¶
-
The subtitle of the theme as used for UI elements