Example #1
0
 def to_node(self):
     node = Path.to_node(self)
     # Add the extra information to the XML tag to help parsing to
     # the object from XML.
     node.setAttribute(SVGENESIS_TYPE, 'OuterEvilEye')
     return node
Example #2
0
 def __init__(self, x, y, fill=rgb(0,0,0), stroke=rgb(0,0,0), stroke_width=1.0, 
              opacity=1.0, stroke_opacity=1.0):
     Path.__init__(self, points=self.DEFAULT_POINTS, fill=fill,
                   stroke_width=stroke_width, stroke_opacity=stroke_opacity, 
                   opacity=opacity, stroke=stroke)