コード例 #1
0
ファイル: group.py プロジェクト: gnarula/eden_deployment
 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
コード例 #2
0
ファイル: group.py プロジェクト: Akanksha18/eden
 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     
コード例 #3
0
ファイル: group.py プロジェクト: nicopresto/webSkapes
 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
コード例 #4
0
ファイル: base.py プロジェクト: BhagyaGH/eden
 def SVG(self, indent):
     attr = self.setSVG()
     return indent + "<" + self.name + " " + attributesToSVG(attr) + " />\n"
コード例 #5
0
ファイル: base.py プロジェクト: Koperj/SahanaEden
 def SVG (self, indent):
     attr = self.setSVG ()
     return indent + '<' + self.name + ' ' + attributesToSVG (attr) + ' />\n'
コード例 #6
0
ファイル: base.py プロジェクト: gnarula/eden_deployment
 def SVG(self, indent):
     attr = self.setSVG()
     return indent + '<' + self.name + ' ' + attributesToSVG(attr) + ' />\n'