gtk.shortcut_label
Module for [ShortcutLabel] class
Types 3
classShortcutLabel : gtk.box.Box
#GtkShortcutLabel is a widget that represents a single keyboard shortcut or gesture in the user interface.
Methods
ShortcutLabel self()Returns `this`, for use in `with` statements.ShortcutLabelGidBuilder builder()Get builder for [gtk.shortcut_label.ShortcutLabel] Returns: New builder objectstring accelerator() @propertyGet `accelerator` property. Returns: The accelerator that @self displays. See #GtkShortcutsShortcut:accelerator for the accepted syntax.void accelerator(string propval) @propertySet `accelerator` property. Params: propval = The accelerator that @self displays. See #GtkShortcutsShortcut:accelerator for the accepted syntax.string disabledText() @propertyGet `disabledText` property. Returns: The text that is displayed when no accelerator is set.void disabledText(string propval) @propertySet `disabledText` property. Params: propval = The text that is displayed when no accelerator is set.string getAccelerator()Retrieves the current accelerator of self. Returns: the current accelerator.string getDisabledText()Retrieves the text that is displayed when no accelerator is set. Returns: the current text displayed when no accelerator is set.void setAccelerator(string accelerator)Sets the accelerator to be displayed by self.void setDisabledText(string disabledText)Sets the text to be displayed by self when no accelerator is set.classShortcutLabelGidBuilderImpl(T) : gtk.box.BoxGidBuilderImpl!T
Methods
T accelerator(string propval)Set `accelerator` property. Params: propval = The accelerator that @self displays. See #GtkShortcutsShortcut:accelerator for the accepted syntax. Returns: Builder instance for fluent chainingT disabledText(string propval)Set `disabledText` property. Params: propval = The text that is displayed when no accelerator is set. Returns: Builder instance for fluent chainingFluent builder for [gtk.shortcut_label.ShortcutLabel]
Methods