Package Scientific :: Package TkWidgets :: Module TkPlotCanvas :: Class VerticalLine
[frames] | no frames]

Class VerticalLine

PolyPoints --+    
             |    
      PolyLine --+
                 |
                VerticalLine

A vertical line

Instance Methods
 
__init__(self, xpos, **attr)
 
draw(self, canvas, bbox)
 
writeToFile(self, file, separator)

Inherited from PolyPoints: boundingBox, scaleAndShift

Method Details

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

 
Parameters:
  • xpos (float) - the x coordinate of the line
  • 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__

draw(self, canvas, bbox)

 
Overrides: PolyLine.draw

writeToFile(self, file, separator)

 
Overrides: PolyPoints.writeToFile