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

Class rect

source code

BaseElement --+
              |
             rect

Class representing the rect element of an svg doc.

Instance Methods [hide private]
 
__init__(self, x=None, y=None, width=None, height=None, rx=None, ry=None, style_dict=None, focusable=None)
initializes the object
source code

Inherited from BaseElement: getXML, getXMLFromStyle

Method Details [hide private]

__init__(self, x=None, y=None, width=None, height=None, rx=None, ry=None, style_dict=None, focusable=None)
(Constructor)

source code 

initializes the object

Parameters:
  • startTag - the tag for the svg element name (e.g. <text )
  • style_dict - the style to use for this element
  • focusable - ??
Overrides: BaseElement.__init__
(inherited documentation)