Gtk.ShortcutLabel¶
class — extends Widget, Accessible, Buildable, ConstraintTarget
:::warning Deprecated since 4.18 This API is deprecated. :::
GtkShortcutLabel displays a single keyboard shortcut or gesture.
The main use case for GtkShortcutLabel is inside a ShortcutsWindow.
Constructors¶
new¶
:::warning Deprecated since 4.18 This API is deprecated. :::
Creates a new GtkShortcutLabel with accelerator set.
Parameters:
accelerator— the initial accelerator
Methods¶
get_accelerator¶
:::warning Deprecated since 4.18 This API is deprecated. :::
Retrieves the current accelerator of self.
get_disabled_text¶
:::warning Deprecated since 4.18 This API is deprecated. :::
Retrieves the text that is displayed when no accelerator is set.
set_accelerator¶
:::warning Deprecated since 4.18 This API is deprecated. :::
Sets the accelerator to be displayed by self.
Parameters:
accelerator— the new accelerator
set_disabled_text¶
:::warning Deprecated since 4.18 This API is deprecated. :::
Sets the text to be displayed by self when no accelerator is set.
Parameters:
disabled_text— the text to be displayed when no accelerator is set
Properties¶
accelerator¶
:::warning Deprecated since 4.18 This API is deprecated. :::
The accelerator that self displays.
See ShortcutsShortcut.accelerator
for the accepted syntax.
disabled_text¶
:::warning Deprecated since 4.18 This API is deprecated. :::
The text that is displayed when no accelerator is set.