Miscellaneous Items
Miscellaneous Items — Miscellaneous items.
Ancestry
+-- goocanvas.Bounds
goocanvas.Bounds Attributes
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)
Ancestry
+-- goocanvas.Points
goocanvas.Points Attributes
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)])
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])