goocanvas.Table — A table container to layout items.
class goocanvas.Table(goocanvas.Group): |
+-- gobject.GObject +-- goocanvas.ItemSimple +-- goocanvas.Group +-- goocanvas.Table
|
|
goocanvas.Table implements goocanvas.Item
goocanvas.Table is a table container used to lay out other canvas items. It is used in a similar way to how the GtkTable widget is used to lay out GTK+ widgets.
Items are added to the table using the normal methods, then set_child_properties s used to specify how each child item is to be positioned within the table (i.e. which row and column it is in, how much padding it should have and whether it should expand or shrink).
goocanvas.Table is a subclass of goocanvas.ItemSimple and so inherits all of the style properties such as "stroke-color", "fill-color" and "line-width". Setting a style property on a goocanvas.Table will affect all children of the goocanvas.Table (unless the children override the property setting).
goocanvas.Table implements the goocanvas.Item nterface, so you can use the goocanvas.Item functions such as raise_ and rotate, and the properties such as "visibility" and "pointer-events".
goocanvas.Table(properties=None)
properties : | A comma separated properties as **kwargs. |
Returns : | A new goocanvas.Table |
Creates a new canvas table item.