Example #1
0
    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)
Example #2
0
 def __init__(self, parent, direction):
     QLayout.__init__(self, parent)
     self._inner = QBoxLayout(direction)
     self._direction = direction
     self._separator = VLine if not self.isVertical() else HLine
     self._item_count = 0
     self._grid_layouts = []
     self._minimum_row_height = 0
     self._spacing = 0
     self._label_alignment = Qt.AlignCenter
     self._panel_direction = QBoxLayout.TopToBottom
     self._group_alignment = None
Example #3
0
 def __init__(self, parent=None):
     QLayout.__init__(self, parent)
     self.items = []
Example #4
0
 def __init__(self, parent=None):
     QLayout.__init__(self, parent)
     self.items = []