Ejemplo n.º 1
0
    def __init__(self,
                 text,
                 charwidth,
                 charheight,
                 charspace=None,
                 linespace=None,
                 origin='bottom-left'):

        _Shape.__init__(self)

        self.text = text
        self.charspace = charspace
        self.linespace = linespace
        self.origin = origin

        self.points = [(0, 0), (charwidth, 0), (charwidth, charheight)]

        self.never_upside_down = False
Ejemplo n.º 2
0
    def __init__(self,
        text,
        charwidth,
        charheight,
        charspace = None,
        linespace = None,
        origin = 'bottom-left'):

        _Shape.__init__(self)

        self.text = text
        self.charspace = charspace
        self.linespace = linespace
        self.origin = origin

        self.points = [(0, 0), (charwidth, 0), (charwidth, charheight)]

        self.never_upside_down = False
Ejemplo n.º 3
0
 def __init__(self, shapes=None):
     _Shape.__init__(self)
     self._shapes = []
     if shapes is None: shapes = []
     self.extend(shapes)
Ejemplo n.º 4
0
 def __init__(self, shapes=None):
     _Shape.__init__(self)
     self._shapes = [ ]
     if shapes is None: shapes = [ ]
     self.extend(shapes)
Ejemplo n.º 5
0
 def __init__(self, points):
     _Shape.__init__(self)
     self.points = CoordinateArray(points)
Ejemplo n.º 6
0
 def __init__(self, points):
     _Shape.__init__(self)
     self.points = CoordinateArray(points)