RB.ButtonBar¶
Subclasses: | None |
---|
Methods¶
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: - model (
Gio.MenuModel
) – aGio.MenuModel
- target (
GObject.Object
) – property and signal binding target
Returns: the button bar
Return type: 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.- model (
-
add_accelerators
(group)¶ Parameters: group ( Gtk.AccelGroup
) – theGtk.AccelGroup
to add accelerators toAdds accelerators for the buttons in self to the accelerator group group.
-
remove_accelerators
(group)¶ Parameters: group ( Gtk.AccelGroup
) – theGtk.AccelGroup
to remove accelerators fromReverses the effects of rb_button_bar_add_accelerators.
-
classmethod
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