Dazzle.ShortcutTooltip¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
The accel for the label, if overriding the discovered accel |
||
r/w/en |
The shortcut command-id to track for shortcut changes |
||
r/w/en |
Title for the tooltip |
||
r/w/en |
The widget to monitor for query-tooltip |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Dazzle.ShortcutTooltip(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a newly created
Dazzle.ShortcutTooltip
- Return type:
Create a new
Dazzle.ShortcutTooltip
.New in version 3.32.
- get_accel()¶
-
Gets the
Dazzle.ShortcutTooltip
:accel
property, which can be used to override the commands accel.New in version 3.32.
- get_command_id()¶
-
Gets the
Dazzle.ShortcutTooltip
:command-id
property.New in version 3.32.
- get_title()¶
-
Gets the
Dazzle.ShortcutTooltip
:title
property, if set.New in version 3.32.
- get_widget()¶
- Returns:
a
Gtk.Widget
orNone
if unset- Return type:
Gtk.Widget
orNone
Gets the
Gtk.Widget
that the shortcut-tooltip is wrapping.New in version 3.32.
- set_accel(accel)¶
-
Allows overriding the accel that is used.
New in version 3.32.
- set_command_id(command_id)¶
- Parameters:
command_id (
str
) – the command-id of the shortcut registered
This sets the
Dazzle.ShortcutTooltip
:command-id
property which denotes which shortcut registered with libdazzle to display when a tooltip request is received.New in version 3.32.
- set_title(title)¶
-
Sets the
Dazzle.ShortcutTooltip
:title
property, which can be used to override the default title for the tooltip as discovered from the shortcut manager.New in version 3.32.
- set_widget(widget)¶
- Parameters:
widget (
Gtk.Widget
orNone
) – aGtk.Widget
orNone
Sets the widget to connect to the
Gtk.Widget
::query-tooltip
signal.If configured, the widget will be displayed with an appropriate tooltip message matching the shortcut from
Dazzle.ShortcutTooltip
:command-id
.New in version 3.32.
Property Details¶
- Dazzle.ShortcutTooltip.props.accel¶
- Name:
accel
- Type:
- Default Value:
- Flags:
The accel for the label, if overriding the discovered accel
- Dazzle.ShortcutTooltip.props.command_id¶
- Name:
command-id
- Type:
- Default Value:
- Flags:
The shortcut command-id to track for shortcut changes
- Dazzle.ShortcutTooltip.props.title¶
- Name:
title
- Type:
- Default Value:
- Flags:
The “title” property contains an alternate title for the tooltip instead of discovering the title from the shortcut manager.
New in version 3.32.
- Dazzle.ShortcutTooltip.props.widget¶
- Name:
widget
- Type:
- Default Value:
- Flags:
The widget to monitor for query-tooltip