Gtk.ShortcutsGroup

g GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Box Gtk.Box Gtk.ShortcutsGroup Gtk.ShortcutsGroup Gtk.Box->Gtk.ShortcutsGroup Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.Orientable->Gtk.Box Gtk.Widget->Gtk.Box

Subclasses:

None

Methods

Inherited:

Gtk.Box (14), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Orientable (2)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

Virtual Methods

Inherited:

Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)

Properties

Inherited:

Gtk.Box (4), Gtk.Widget (34), Gtk.Accessible (1), Gtk.Orientable (1)

Name

Type

Flags

Short Description

accel-size-group

Gtk.SizeGroup

w

height

int

r

title

str

r/w

title-size-group

Gtk.SizeGroup

w

view

str

r/w

Signals

Inherited:

Gtk.Widget (13), GObject.Object (1)

Fields

Inherited:

Gtk.Widget (13), GObject.Object (1)

Class Details

class Gtk.ShortcutsGroup(**kwargs)
Bases:

Gtk.Box

Abstract:

No

Structure:

Gtk.ShortcutsGroupClass

A GtkShortcutsGroup 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 [class`Gtk`.ShortcutsWindow].

Property Details

Gtk.ShortcutsGroup.props.accel_size_group
Name:

accel-size-group

Type:

Gtk.SizeGroup

Default Value:

None

Flags:

WRITABLE

The size group for the accelerator portion of shortcuts in this group.

This is used internally by GTK, and must not be modified by applications.

Gtk.ShortcutsGroup.props.height
Name:

height

Type:

int

Default Value:

1

Flags:

READABLE

A rough measure for the number of lines in this group.

This is used internally by GTK, and is not useful for applications.

Gtk.ShortcutsGroup.props.title
Name:

title

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE

The title for this group of shortcuts.

Gtk.ShortcutsGroup.props.title_size_group
Name:

title-size-group

Type:

Gtk.SizeGroup

Default Value:

None

Flags:

WRITABLE

The size group for the textual portion of shortcuts in this group.

This is used internally by GTK, and must not be modified by applications.

Gtk.ShortcutsGroup.props.view
Name:

view

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

An optional view that the shortcuts in this group are relevant for.

The group will be hidden if the [property`Gtk`.ShortcutsWindow:view-name] property does not match the view of this group.

Set this to None to make the group always visible.