gtk.shortcuts_group
Module for ShortcutsGroup class
Types 3
A gtk.shortcuts_group.ShortcutsGroup represents a group of related keyboard shortcuts or gestures.
The group has a title. It may optionally be associated with a view of the application, which can be used to show only relevant shortcuts depending on the application context.
This widget is only meant to be used with gtk.shortcuts_window.ShortcutsWindow.
The recommended way to construct a gtk.shortcuts_group.ShortcutsGroup is with gtk.builder.Builder, by using the <child> tag to populate a gtk.shortcuts_group.ShortcutsGroup with one or more gtk.shortcuts_shortcut.ShortcutsShortcut instances.
If you need to add a shortcut programmatically, use gtk.shortcuts_group.ShortcutsGroup.addShortcut.
ShortcutsGroup self()Returns `this`, for use in `with` statements.ShortcutsGroupGidBuilder builder()Get builder for [gtk.shortcuts_group.ShortcutsGroup] Returns: New builder objectvoid accelSizeGroup(gtk.size_group.SizeGroup propval) @propertySet `accelSizeGroup` property. Params: propval = The size group for the accelerator portion of shortcuts in this group.uint height() @propertyGet `height` property. Returns: A rough measure for the number of lines in this group.void title(string propval) @propertySet `title` property. Params: propval = The title for this group of shortcuts.void titleSizeGroup(gtk.size_group.SizeGroup propval) @propertySet `titleSizeGroup` property. Params: propval = The size group for the textual portion of shortcuts in this group.string view() @propertyGet `view` property. Returns: An optional view that the shortcuts in this group are relevant for.void view(string propval) @propertySet `view` property. Params: propval = An optional view that the shortcuts in this group are relevant for.void addShortcut(gtk.shortcuts_shortcut.ShortcutsShortcut shortcut)Adds a shortcut to the shortcuts group.Fluent builder implementation template for gtk.shortcuts_group.ShortcutsGroup
T accelSizeGroup(gtk.size_group.SizeGroup propval)Set `accelSizeGroup` property. Params: propval = The size group for the accelerator portion of shortcuts in this group.T title(string propval)Set `title` property. Params: propval = The title for this group of shortcuts. Returns: Builder instance for fluent chainingT titleSizeGroup(gtk.size_group.SizeGroup propval)Set `titleSizeGroup` property. Params: propval = The size group for the textual portion of shortcuts in this group.T view(string propval)Set `view` property. Params: propval = An optional view that the shortcuts in this group are relevant for.Fluent builder for gtk.shortcuts_group.ShortcutsGroup
ShortcutsGroup build()Create object from builder. Returns: New object