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¶
- class GEllipse(**keywords)¶
A class representing a solid ellipse.
The ellipse is the largest one that can be drawn inside of a rectangle whose bottom center is at (x,y), with the given width and height. The interior (fill) color of this ellipse is
fillcolor
. If this value is None, then the ellipse is not solid. The color linecolor is the color of the border.This class has exactly the same properties as
GRectangle
. See the documentation of that class andGObject
for a complete list of attributes.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. 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='red')
This class supports the all same keywords as
GRectangle
.- Parameters:
keywords (keys are attribute names) – dictionary of keyword arguments
Attributes¶
This class has all of the attributes of GObject and those of GRectangle. It has no additional attributes.
Methods¶
This class does not have any methods beyond those defined in GObject.