GtkGridLayout

gtk.grid_layout.GridLayout is a layout manager which arranges child widgets in rows and columns.

Children have an "attach point" defined by the horizontal and vertical index of the cell they occupy; children can span multiple rows or columns. The layout properties for setting the attach points and spans are set using the gtk.grid_layout_child.GridLayoutChild associated to each child widget.

The behaviour of gtk.grid_layout.GridLayout when several children occupy the same grid cell is undefined.

gtk.grid_layout.GridLayout can be used like a gtk.box_layout.BoxLayout if all children are attached to the same row or column; however, if you only ever need a single row or column, you should consider using gtk.box_layout.BoxLayout.

struct GtkGridLayout