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)
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)