Miscellaneous Items

Miscellaneous Items — Miscellaneous items.

Synopsis

class goocanvas.Bounds:
    goocanvas.Bounds(coords=None)

Ancestry

+-- goocanvas.Bounds

goocanvas.Bounds Attributes

"x1"Read/WriteThe left edge.
"y1"Read/WriteThe top edge.
"x2"Read/WriteThe right edge.
"y2"Read/WriteThe bottom edge.

Description

goocanvas.Bounds represents the bounding box of an item in the canvas.

Constructor

    goocanvas.Bounds(coords=None)

coords :

The four coords of the bounding box

Returns :

A new goocanvas.Bounds

Creates a new canvas bounds item.

Here's an example showing how to create bounds at (100.0, 100.0, 200.0, 200.0).

bounds = goocanvas.Bounds(100.0, 100.0, 200.0, 200.0)

Synopsis

class goocanvas.Points:
    goocanvas.Points(points=None)

Ancestry

+-- goocanvas.Points

Description

goocanvas.Points represents an array of points.

Constructor

    goocanvas.Points(points=None)

points :

A list of tuples containing the coords pair.

Returns :

A new goocanvas.Points

Creates a new canvas points item.

Here's an example showing how to create points.

points = goocanvas.Points([(100.0, 100.0), (200.0, 200.0)])

Synopsis

class goocanvas.LineDash:
    goocanvas.LineDash(data=None)

Ancestry

+-- goocanvas.LineDash

Description

goocanvas.LineDash specifies a dash pattern to be used when drawing items.

Constructor

    goocanvas.LineDash(data=None)

data :

A list of line/space pairs.

Returns :

A new goocanvas.LineDash

Creates a new canvas linedash item.

Here's an example showing how to create linedash.

linedash = goocanvas.LineDash([5.0, 10.0, 20.0, 10.0, 5.0])