Beispiel #1
0
 def espacio(self, ancho=100, alto=24):
     s = Spacer(ancho, alto)
     ancho, alto = s.wrap(self.doc.width, self.doc.height)
     self.alto += alto
     self.elements.append(s)
 def wrap (self, aW, aH):
     w, h = Spacer.wrap(self, aW, aH)
     self.height = min(aH, h)
     return w, self.height
Beispiel #3
0
 def wrap (self, aW, aH):
     w, h = Spacer.wrap(self, aW, aH)
     self.height = min(aH, h)
     return w, self.height