Example #1
0
 def SVG(self, indent):
     attr = self.setSVG()
     nextIndent = indent + '    '
     if len(self) > 0:
         output = indent + '<' + self.name
         attributes = attributesToSVG(attr)
         if attributes != '':
             output += ' ' + attributes
         output += '>\n'
         output += self.childrenSVG(nextIndent)
         output += indent + '</' + self.name + '>\n'
     else:
         output = Element.SVG(self, indent)
     return output
Example #2
0
 def SVG (self, indent):
     attr = self.setSVG ()
     nextIndent = indent + '    '
     if len (self) > 0:
         output = indent + '<' + self.name
         attributes = attributesToSVG (attr)
         if attributes != '':
             output += ' ' + attributes
         output += '>\n'
         output += self.childrenSVG (nextIndent)
         output += indent + '</' + self.name + '>\n'
     else:
         output = Element.SVG (self, indent)
     return output     
Example #3
0
 def SVG(self, indent):
     attr = self.setSVG()
     nextIndent = indent + "    "
     if len(self) > 0:
         output = indent + "<" + self.name
         attributes = attributesToSVG(attr)
         if attributes != "":
             output += " " + attributes
         output += ">\n"
         output += self.childrenSVG(nextIndent)
         output += indent + "</" + self.name + ">\n"
     else:
         output = Element.SVG(self, indent)
     return output
Example #4
0
 def SVG(self, indent):
     attr = self.setSVG()
     return indent + "<" + self.name + " " + attributesToSVG(attr) + " />\n"
Example #5
0
 def SVG (self, indent):
     attr = self.setSVG ()
     return indent + '<' + self.name + ' ' + attributesToSVG (attr) + ' />\n'
Example #6
0
 def SVG(self, indent):
     attr = self.setSVG()
     return indent + '<' + self.name + ' ' + attributesToSVG(attr) + ' />\n'