Ejemplo n.º 1
0
    def __init__(self, c, line_height):
        canvas.__init__(self, c.page,
                        c._x, c._y, c._w, c._h,
                        c._border, c._clip)
        self.head = c.head
        self.body = c.body
        self.tail = c.tail

        self.line_height = line_height
        self._line_cursor = self.h()
        self.newline()
Ejemplo n.º 2
0
    def __init__(self, parent, x, y, w, h, border=False, clip=False, **kw):
        canvas.__init__(self, parent, x, y, w, h, border, clip)

        self._y_cursor = h