goocanvas.Ellipse — An ellipse item.
|
goocanvas.Ellipse
represents an ellipse 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.Ellipse(properties
=None)
| A comma separated list of properties. |
Returns : | A new
goocanvas.Ellipse
|
Creates a new canvas ellipse item.
Here's an example showing how to create an ellipse centered at (100.0, 100.0), with a horizontal radius of 50.0 and a vertical radius of 30.0. It is drawn with a red outline with a width of 5.0 and filled with blue:
ellipse = goocanvas.Ellipse(parent=root, center_x=100, center_y=100, radius_x=50, radius_y=30, stroke_color="red", fill_color="blue", line_width=5.0)