The gtk.box.Box widget arranges child widgets into a single row or column.
Whether it is a row or column depends on the value of its gtk.orientable.Orientable.Orientation property. Within the other dimension, all children are allocated the same size. Of course, the gtk.widget.Widget.Align and gtk.widget.Widget.Align properties can be used on the children to influence their allocation.
Use repeated calls to gtk.box.Box.append to pack widgets into a gtk.box.Box from start to end. Use gtk.box.Box.remove to remove widgets from the gtk.box.Box. gtk.box.Box.insertChildAfter can be used to add a child at a particular position.
Use gtk.box.Box.setHomogeneous to specify whether or not all children of the gtk.box.Box are forced to get the same amount of space.
Use gtk.box.Box.setSpacing to determine how much space will be minimally placed between all children in the gtk.box.Box. Note that spacing is added *between* the children.
Use gtk.box.Box.reorderChildAfter to move a child to a different place in the box.
gtk.box.Box uses a single CSS node with name box.
Until GTK 4.10, gtk.box.Box used the gtk.types.AccessibleRole.Group role.
Starting from GTK 4.12, gtk.box.Box uses the gtk.types.AccessibleRole.Generic role.
The gtk.box.Box widget arranges child widgets into a single row or column.
Whether it is a row or column depends on the value of its gtk.orientable.Orientable.Orientation property. Within the other dimension, all children are allocated the same size. Of course, the gtk.widget.Widget.Align and gtk.widget.Widget.Align properties can be used on the children to influence their allocation.
Use repeated calls to gtk.box.Box.append to pack widgets into a gtk.box.Box from start to end. Use gtk.box.Box.remove to remove widgets from the gtk.box.Box. gtk.box.Box.insertChildAfter can be used to add a child at a particular position.
Use gtk.box.Box.setHomogeneous to specify whether or not all children of the gtk.box.Box are forced to get the same amount of space.
Use gtk.box.Box.setSpacing to determine how much space will be minimally placed between all children in the gtk.box.Box. Note that spacing is added *between* the children.
Use gtk.box.Box.reorderChildAfter to move a child to a different place in the box.
CSS nodes
gtk.box.Box uses a single CSS node with name box.
Accessibility
Until GTK 4.10, gtk.box.Box used the gtk.types.AccessibleRole.Group role.
Starting from GTK 4.12, gtk.box.Box uses the gtk.types.AccessibleRole.Generic role.