RB.ButtonBar

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Grid Gtk.Grid Gtk.Container->Gtk.Grid RB.ButtonBar RB.ButtonBar Gtk.Grid->RB.ButtonBar Gtk.Orientable->Gtk.Grid Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.Grid (21), 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

new (model, target)

add_accelerators (group)

remove_accelerators (group)

Virtual Methods

Inherited:

Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Grid (5), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)

Name

Type

Flags

Short Description

model

Gio.MenuModel

r/w/co

model

target

GObject.Object

r/w/co

binding target

Child Properties

Inherited:

Gtk.Grid (4)

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Fields

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

parent

Gtk.Grid

r

Class Details

class RB.ButtonBar(**kwargs)
Bases:

Gtk.Grid

Abstract:

No

Structure:

RB.ButtonBarClass

classmethod new(model, target)
Parameters:
Returns:

the button bar

Return type:

Gtk.Widget

Creates a toolbar-like widget (not actually a Gtk.Toolbar) containing a row of buttons representing the items in model. If an item in the model has an rb-property-bind attribute set, the state of the button is bound to the corresponding property of the source that the toolbar is associated with. This only works for toggle buttons, so the property must be a boolean.

add_accelerators(group)
Parameters:

group (Gtk.AccelGroup) – the Gtk.AccelGroup to add accelerators to

Adds accelerators for the buttons in self to the accelerator group group.

remove_accelerators(group)
Parameters:

group (Gtk.AccelGroup) – the Gtk.AccelGroup to remove accelerators from

Reverses the effects of rb_button_bar_add_accelerators.

Property Details

RB.ButtonBar.props.model
Name:

model

Type:

Gio.MenuModel

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

model

RB.ButtonBar.props.target
Name:

target

Type:

GObject.Object

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

binding target