def __init__(self, content=[], maxWidth=0, maxHeight=0, zoom=1, **kwargs):
     if content and not hasattr(content, "__iter__"):
         raise ValueError("content expected to be a list of flowables")
     self.zoom = zoom
     KeepInFrame.__init__(self,
                          maxWidth,
                          maxHeight,
                          content=content,
                          **kwargs)
Exemple #2
0
 def __init__(self, content=[], maxWidth=0, maxHeight=0, zoom=1, **kwargs):
     if content and not hasattr(content, '__iter__'):
         raise ValueError('content expected to be a list of flowables')
     self.zoom = zoom
     KeepInFrame.__init__(self, maxWidth, maxHeight, content=content, **kwargs)