A diagram item that adds a line to the canvas.
More...
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 a line to the canvas.
This class is a wrapper for the Tkinter.Canvas.create_line() function.
Constructor & Destructor Documentation
def diagram.DiagramBuilder.LineItem.__init__ |
( |
|
args | ) |
|
Creates a new instance.
Parameters:
points: The list of vertices for the line to draw. The vertices are
two element float tuples (i.e. x & y-coordinate pairs).
args: The same arguments that are provided to Tkinter.Canvas.create_line 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.LineItem.CleanArgs |
( |
|
args | ) |
|
def diagram.DiagramBuilder.LineItem.ClearHighlight |
( |
|
args | ) |
|
def diagram.DiagramBuilder.LineItem.ClearHover |
( |
|
args | ) |
|
def diagram.DiagramBuilder.LineItem.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.LineItem.Erase |
( |
|
args | ) |
|
def diagram.DiagramBuilder.LineItem.Highlight |
( |
|
args | ) |
|
def diagram.DiagramBuilder.LineItem.Hover |
( |
|
args | ) |
|
Member Data Documentation
float diagram.DiagramBuilder.LineItem.expansion_factor = 100.0 |
|
static |