def setGeometry(self, rect): """ Layout the contents of the layout manager based upon the area provided by the specified rectangle. """ QLayout.setGeometry(self, rect) self.layout.perform_layout(rect.x(), rect.y(), rect.width(), rect.height())
def setGeometry(self, r): QLayout.setGeometry(self, r) new_height = self._layoutChildren(r) if new_height != self._min_h: self._updateMinimumSize(new_height) i = 0 wid = self.parentWidget() while wid is not None: wid.updateGeometry() wid = wid.parentWidget() i += 1
def __init__(self, parent=None): QLayout.__init__(self, parent) self._items = [] self._updateMinimumSize()
def invalidate(self): QLayout.invalidate(self) self._cached_size_hint = None
def setGeometry(self, rect): QLayout.setGeometry(self, rect) self.doLayout(rect)
def __init__(self, column_count, *args): QLayout.__init__(self, *args) self.items = [] self.column_count = column_count self.setMargin(0) self.setSpacing(-1)