A diagram item that adds an oval to the canvas.
More...
Class methods defined here: |
def | Circle |
Static methods inherited from DiagramItem: |
def | CleanArgs |
Data and other attributes inherited from DiagramItem: |
float | expansion_factor = 100.0 |
Detailed Description
A diagram item that adds an oval to the canvas.
This class is a wrapper for the Tkinter.Canvas.create_oval() function.
Constructor & Destructor Documentation
def diagram.DiagramBuilder.OvalItem.__init__ |
( |
|
args | ) |
|
Creates a new instance.
Parameters:
point1, point1: Two element float tuples that give the diagonally opposite
corners that define the rectangular region that encloses the oval.
args: The same arguments that are provided to Tkinter.Canvas.create_oval with
the addition of the 'highlight' argument for the highlight color. If the
'highlight' argument is not provided then calls to highlight this drawing item
will be ignored.
Reimplemented from diagram.DiagramBuilder.DiagramItem.
Member Function Documentation
def diagram.DiagramBuilder.OvalItem.Circle |
( |
|
args | ) |
|
Alternate constructor that creates a circle.
Parameters:
center: The x & y-coordinates of the center of the circle represented by
a two element float tuple.
radius: The radius of the circle.
args: The same arguments that are provided to Tkinter.Canvas.create_oval with
the addition of the 'highlight' argument for the highlight color. If the
'highlight' argument is not provided then calls to highlight this drawing item
will be ignored.
builtin.classobj_cls_m Class Methods from builtin.classobj
def diagram.DiagramBuilder.OvalItem.CleanArgs |
( |
|
args | ) |
|
def diagram.DiagramBuilder.OvalItem.ClearHighlight |
( |
|
args | ) |
|
def diagram.DiagramBuilder.OvalItem.ClearHover |
( |
|
args | ) |
|
def diagram.DiagramBuilder.OvalItem.Draw |
( |
|
args | ) |
|
Draws the diagram item on the canvas.
Parameters:
canvas: The canvas widget.
Returns A list of ids of items added to the canvas.
Reimplemented from diagram.DiagramBuilder.DiagramItem.
def diagram.DiagramBuilder.OvalItem.Erase |
( |
|
args | ) |
|
def diagram.DiagramBuilder.OvalItem.Highlight |
( |
|
args | ) |
|
def diagram.DiagramBuilder.OvalItem.Hover |
( |
|
args | ) |
|
Member Data Documentation
float diagram.DiagramBuilder.OvalItem.expansion_factor = 100.0 |
|
static |