def __init__(self, parent, direction): QBoxLayout.__init__(self, direction, parent) self._index = 0 self._widgets = []
def __init__(self): QBoxLayout.__init__(self, QBoxLayout.Direction.TopToBottom)