goocanvas.Grid — A grid item.
|
goocanvas.Grid
represents a grid item.
It is a subclass of goocanvas.ItemSimple
and so inherits all of the style properties such as "stroke-color", "fill-color" and "line-width".
It also implements the goocanvas.Item
interface, so you can use the goocanvas.Item
functions such as goocanvas.Item.raise_()
and goocanvas.Item.rotate()
goocanvas.Grid(properties
=None)
| A comma separated list of properties. |
Returns : | A new
goocanvas.Grid
|
Creates a new canvas grid item.
Here's an example showing how to create a grid:
grid = goocanvas.Grid(parent=root, x=100, y=100, width=400, height=200, x_step=20, Y_step=20, x_offset=10, y_offset=10, horz_grid_line_width=4.0, horz_grid_line_color="yellow", vert_grid_line_width=2.0, vert_grid_line_color="red", border_width=3.0, border_color="white", fill_color="blue" )