GtkTable
Container that provides a two-dimensional grid for packing widgets.
Object Hierarchy
Description
GtkTable is a container that provides a simple way
of aligning many widgets in a window, both horizontally and vertically.
Although not as flexible as GtkFixed, it's easier to
use and allows for relative positioning, by simply defining the number of
rows and columns. The resulting cells have a structure similar to that of a
GtkBox, allowing a single child per cell, though
the child can span along multiple rows or columns.
Adding widgets to a GtkTable is mainly done through
the attach() method, that provides a
great deal of control over the way the child should be placed within the
table. The attach_defaults() and
add() methods are of lesser
interest. To remove a widget from the table, you can use
remove() .
Accessing child widgets placed within a GtkTable can
be done through the get_children()
method, inherited from GtkContainer. It returns a
list of the container's children.
See also:
GtkVBox,
GtkHBox,
GtkFixed.
Constructors
GtkTable ([int
n_rows = 1 [, int
n_columns = 1 [, bool
homogeneous = false]]]);
--
Creates a grid for packing widgets in regular patterns.