RB.ButtonBar¶
- 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 |
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Gtk.Grid (5), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
model |
||
r/w/co |
binding target |
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class RB.ButtonBar(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- 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.
- add_accelerators(group)¶
- Parameters:
group (
Gtk.AccelGroup
) – theGtk.AccelGroup
to add accelerators to
Adds accelerators for the buttons in self to the accelerator group group.
- remove_accelerators(group)¶
- Parameters:
group (
Gtk.AccelGroup
) – theGtk.AccelGroup
to remove accelerators from
Reverses the effects of rb_button_bar_add_accelerators.
Property Details¶
- RB.ButtonBar.props.model¶
- Name:
model
- Type:
- Default Value:
- Flags:
model
- RB.ButtonBar.props.target¶
- Name:
target
- Type:
- Default Value:
- Flags:
binding target