예제 #1
0
 def to_node(self):
     node = Polygon.to_node(self)
     node.setAttribute(SVGENESIS_TYPE, 'Triangle')
     return node
예제 #2
0
 def to_node(self):
     node = Polygon.to_node(self)
     # Add the extra information to the XML tag to help parsing to
     # the object from XML.
     node.setAttribute(SVGENESIS_TYPE, 'EquilateralTriangle')
     return node