# Class GTK2.Table

Inheritance graph

Description

  The GTK2.Table allows the programmer to arrange widgets in rows and columns, making it easy to align many widgets next to each other, horizontally and vertically.

  `GTK2.Table(2,2,0)->attach_defaults( GTK2.Label("0,0"), 0, 1, 0, 1)->attach_defaults( GTK2.Label("0,1"), 0, 1, 1, 2)->attach_defaults( GTK2.Label("1,0"), 1, 2, 0, 1)->attach_defaults( GTK2.Label("1,1"), 1, 2, 1, 2)->set_col_spacings(10)->set_row_spacings(10)`

  `GTK2.Table(2,2,0)->attach_defaults( GTK2.Label("0,0-1,0"), 0, 2, 0, 1)->attach_defaults( GTK2.Label("0,1"), 0, 1, 1, 2)->attach_defaults( GTK2.Label("1,1"), 1, 2, 1, 2)->set_col_spacings(10)->set_row_spacings(10)`

  Properties: int column-spacing int homogeneous int n-columns int n-rows int row-spacing

  Child properties: int bottom-attach int left-attach int right-attach int top-attach int x-options int x-padding int y-options int y-padding

Inherit Container

  inherit GTK2.Container : Container

Method create

  `GTK2.Table GTK2.Table(int|mapping width_or_props, int|void height, int|void homogeneousp)`

Description

  Used to create a new table widget. An initial size must be given by specifying how many rows and columns the table should have, although this can be changed later with resize().

  There can never be more than 65535 colums nor more than 65535 rows.

  setting homogeneousp to 1 forces the all tablecells to be exactly the same size.