def SVG(self, indent): if self.parent is None: prepend = '<?xml version="1.0" standalone="no"?>\n' prepend += '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ' prepend += '"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n' self.scripts.reverse() for script in self.scripts: self.drawAt(script, 0) return prepend + GroupableElement.SVG(self, indent) else: return GroupableElement.SVG(self, indent)
def SVG(self, indent): return GroupableElement.SVG(self, indent)