Gtk.ButtonBox¶
- Subclasses:
 
Methods¶
- Inherited:
 Gtk.Box (14), 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.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/en  | 
How to lay out the buttons in the box. Possible values are: spread, edge, start and end  | 
Child Properties¶
- Inherited:
 
Name  | 
Type  | 
Default  | 
Flags  | 
Short Description  | 
|---|---|---|---|---|
  | 
r/w  | 
If   | 
||
  | 
r/w  | 
If   | 
Style Properties¶
- Inherited:
 
Name  | 
Type  | 
Default  | 
Flags  | 
Short Description  | 
|---|---|---|---|---|
  | 
  | 
d/r  | 
Amount to increase child’s size on either side   | 
|
  | 
  | 
d/r  | 
Amount to increase child’s size on the top and bottom   | 
|
  | 
  | 
d/r  | 
Minimum height of buttons inside the box   | 
|
  | 
  | 
d/r  | 
Minimum width of buttons inside the box   | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
box  | 
r  | 
Class Details¶
- class Gtk.ButtonBox(*args, **kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
- classmethod new(orientation)[source]¶
 - Parameters:
 orientation (
Gtk.Orientation) – the box’s orientation.- Returns:
 a new
Gtk.ButtonBox.- Return type:
 
Creates a new
Gtk.ButtonBox.New in version 3.0.
- get_child_non_homogeneous(child)[source]¶
 - Parameters:
 child (
Gtk.Widget) – a child of self- Returns:
 Trueif the child is not subject to homogenous sizing- Return type:
 
Returns whether the child is exempted from homogenous sizing.
New in version 3.2.
- get_child_secondary(child)[source]¶
 - Parameters:
 child (
Gtk.Widget) – a child of self- Returns:
 whether child should appear in a secondary group of children.
- Return type:
 
Returns whether child should appear in a secondary group of children.
New in version 2.4.
- get_layout()[source]¶
 - Returns:
 the method used to lay out buttons in self.
- Return type:
 
Retrieves the method being used to arrange the buttons in a button box.
- set_child_non_homogeneous(child, non_homogeneous)[source]¶
 - Parameters:
 child (
Gtk.Widget) – a child of selfnon_homogeneous (
bool) – the new value
Sets whether the child is exempted from homogeous sizing.
New in version 3.2.
- set_child_secondary(child, is_secondary)[source]¶
 - Parameters:
 child (
Gtk.Widget) – a child of selfis_secondary (
bool) – ifTrue, the child appears in a secondary group of the button box.
Sets whether child should appear in a secondary group of children. A typical use of a secondary child is the help button in a dialog.
This group appears after the other children if the style is
Gtk.ButtonBoxStyle.START,Gtk.ButtonBoxStyle.SPREADorGtk.ButtonBoxStyle.EDGE, and before the other children if the style isGtk.ButtonBoxStyle.END. For horizontal button boxes, the definition of before/after depends on direction of the widget (seeGtk.Widget.set_direction()). If the style isGtk.ButtonBoxStyle.STARTorGtk.ButtonBoxStyle.END, then the secondary children are aligned at the other end of the button box from the main children. For the other styles, they appear immediately next to the main children.
- set_layout(layout_style)[source]¶
 - Parameters:
 layout_style (
Gtk.ButtonBoxStyle) – the new layout style
Changes the way buttons are arranged in their container.
Property Details¶
- Gtk.ButtonBox.props.layout_style¶
 - Name:
 layout-style- Type:
 - Default Value:
 - Flags:
 
How to lay out the buttons in the box. Possible values are: spread, edge, start and end