def to_node(self): node = Polygon.to_node(self) node.setAttribute(SVGENESIS_TYPE, 'Triangle') return node
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