Gtk.ShortcutLabel¶
- Subclasses:
 None
Methods¶
- Inherited:
 Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)
- Structs:
 Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class  | 
  | 
  | 
|
  | 
Virtual Methods¶
Properties¶
- Inherited:
 Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
Accelerator  | 
||
r/w  | 
Disabled text  | 
Child Properties¶
- Inherited:
 
Style Properties¶
- Inherited:
 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Class Details¶
- class Gtk.ShortcutLabel(*args, **kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Gtk.ShortcutLabelis a widget that represents a single keyboard shortcut or gesture in the user interface.- classmethod new(accelerator)[source]¶
 - Parameters:
 accelerator (
str) – the initial accelerator- Returns:
 a newly-allocated
Gtk.ShortcutLabel- Return type:
 
Creates a new
Gtk.ShortcutLabelwith accelerator set.New in version 3.22.
- get_disabled_text()[source]¶
 - 
Retrieves the text that is displayed when no accelerator is set.
New in version 3.22.
 
Property Details¶
- Gtk.ShortcutLabel.props.accelerator¶
 - 
The accelerator that self displays. See
Gtk.ShortcutsShortcut:acceleratorfor the accepted syntax.New in version 3.22.