goocanvas.TableModel — A model for a table container to layout items.
+-- gobject.GObject +-- goocanvas.ItemModelModelSimple +-- goocanvas.GroupModel +-- goocanvas.TableModel
|
|
goocanvas.TableModel
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.TableModel
is a subclass of
goocanvas.ItemModelSimple
and so inherits all of the style properties such as "stroke-color", "fill-color" and "line-width".
Setting a style property on a goocanvas.TableModel
will affect all children of the goocanvas.TableModel
(unless the children override the property setting).
goocanvas.TableModel
implements the
goocanvas.ItemModel
nterface, so you can use the
goocanvas.ItemModel
functions such as
raise_
and
rotate
,
and the properties such as "visibility" and "pointer-events".
goocanvas.TableModel(properties
=None)
| A comma separated properties as **kwargs. |
Returns : | A new
goocanvas.TableModel
|
Creates a new canvas table model item.