def __init__(self, vertical, parent): QLayout.__init__(self, parent) self.vertical = vertical self._children = [] self.min_size = QSize(190, 200) if vertical else QSize(120, 120) self.setContentsMargins(0, 0, 0, 0)
def __init__(self, parent=None): QLayout.__init__(self, parent) self.items = []