Package pySVG :: Module pysvg :: Class line
[hide private]
[frames] | no frames]

Class line

source code

BaseElement --+
              |
             line

Class representing the line element of an svg doc. Note that this element is NOT painted VISIBLY by default UNLESS you provide a style including STROKE and STROKE-WIDTH

Instance Methods [hide private]
 
__init__(self, x1=None, y1=None, x2=None, y2=None, style_dict=None, focusable=None)
Creates a line
source code

Inherited from BaseElement: getXML, getXMLFromStyle

Method Details [hide private]

__init__(self, x1=None, y1=None, x2=None, y2=None, style_dict=None, focusable=None)
(Constructor)

source code 

Creates a line

Parameters:
  • x1 (string or int) - starting x-coordinate
  • y1 - starting y-coordinate
  • x2 - ending x-coordinate
  • y2 (string or int) - ending y-coordinate
  • style_dict (dictionary) - style(s) to use for this element
  • focusable (???) - ??
Overrides: BaseElement.__init__