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 setGeometry(self, r): QLayout.setGeometry(self, r) self.do_layout(r)
def setGeometry(self, rect): QLayout.setGeometry(self, rect) self.do_layout(rect, apply_geometry=True)
def __init__(self, parent=None): QLayout.__init__(self, parent) self.items = []