Package Scientific :: Package TkWidgets :: Module TkPlotCanvas :: Class PolyLine
[hide private]
[frames] | no frames]

Class PolyLine



PolyPoints --+
             |
            PolyLine
Known Subclasses:
HorizontalLine, VerticalLine

Multiple connected lines

Instance Methods [hide private]
  __init__(self, points, **attr)

Inherited from PolyPoints: boundingBox, scaleAndShift, writeToFile


Class Variables [hide private]
  _attributes = {'color': 'black', 'width': 1, 'stipple': None}

Method Details [hide private]

__init__(self, points, **attr)
(Constructor)

 
Parameters:
  • points - any sequence of (x, y) number pairs
  • attr - line attributes
  • width - the line width (default: 1)
  • color - a string whose value is one of the color names defined in Tk (default: "black")
  • stipple - a string whose value is the name of a bitmap defined in Tk, or None for no bitmap (default: None)
Overrides: PolyPoints.__init__

Class Variable Details [hide private]

_attributes

Value:
{'color': 'black', 'width': 1, 'stipple': None}