28 """ |
28 """ |
29 Constructor |
29 Constructor |
30 |
30 |
31 @param parent reference to the parent widget (QWidget) |
31 @param parent reference to the parent widget (QWidget) |
32 """ |
32 """ |
33 QWidget.__init__(self, parent) |
33 super().__init__(parent) |
34 |
34 |
35 if self.layoutDirection == Qt.Horizontal: |
35 if self.layoutDirection == Qt.Horizontal: |
36 direction = QBoxLayout.LeftToRight |
36 direction = QBoxLayout.LeftToRight |
37 else: |
37 else: |
38 direction = QBoxLayout.TopToBottom |
38 direction = QBoxLayout.TopToBottom |