goocanvas.Grid — A grid item.
class goocanvas.Grid(goocanvas.ItemSimple): |
+-- gobject.GObject +-- goocanvas.ItemSimple +-- goocanvas.Grid
|
goocanvas.Grid implements goocanvas.Item
goocanvas.Grid(properties=None)
properties : | 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" )