goocanvas.Ellipse — An ellipse item.
class goocanvas.Ellipse(goocanvas.ItemSimple): |
+-- gobject.GObject +-- goocanvas.ItemSimple +-- goocanvas.Ellipse
|
goocanvas.Ellipse implements goocanvas.Item
goocanvas.Ellipse(properties=None)| properties : | 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)