Package obitools :: Module SVGdraw :: Class drawing
[hide private]
[frames] | no frames]

Class drawing

source code

d=drawing()

this is the actual SVG document. It needs a svg element as a root. Use the addSVG method to set the svg to the root. Use the toXml method to write the SVG source to the screen or to a file d=drawing() d.addSVG(svg) d.toXml(optionalfilename)

Instance Methods [hide private]
 
__init__(self) source code
 
setSVG(self, svg) source code
 
toXml(self, filename='', compress=False)
drawing.toXml() ---->to the screen drawing.toXml(filename)---->to the file writes a svg drawing to the screen or to a file compresses if filename ends with svgz or if compress is true
source code
 
validate(self) source code