Exemple #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
Exemple #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
Exemple #3
0
 def __init__(self, shapes=None):
     _Shape.__init__(self)
     self._shapes = []
     if shapes is None: shapes = []
     self.extend(shapes)
Exemple #4
0
 def __init__(self, shapes=None):
     _Shape.__init__(self)
     self._shapes = [ ]
     if shapes is None: shapes = [ ]
     self.extend(shapes)
Exemple #5
0
 def __init__(self, points):
     _Shape.__init__(self)
     self.points = CoordinateArray(points)
Exemple #6
0
 def __init__(self, points):
     _Shape.__init__(self)
     self.points = CoordinateArray(points)