Class GEllipse¶
This class represents a solid ellipse to draw to the screen. The ellipse is the largest one that can be drawn inside of a rectangle whose center is at (x,y), with the given width and height.
Constructor¶
-
GEllipse
(**keywords)¶ Constructor: Creates a new solid ellipse
To use the constructor for this class, you should provide it with a list of keyword arguments that initialize various attributes. The keywords are the same as the attribute names. For example, to create a red circle centered at (0,0), use the constructor call
GEllipse(x=0,y=0,width=10,height=10,fillcolor=colormodel.RED)This class supports the all same attributes as GRectangle See the documentation of that class and GObject for a complete list of attributes.
Parameter: keywords – dictionary of keyword arguments Precondition: See above.
Attributes¶
This class has all of the attributes of GObject. In addition, it has the following new attributes (from GRectangle).