| 115 | self.topRightGroupBox.setLayout(layout) |
| 116 | |
| 117 | def createBottomLeftTabWidget(self): |
| 118 | self.bottomLeftTabWidget = QTabWidget() |
| 119 | self.bottomLeftTabWidget.setSizePolicy(QSizePolicy.Preferred, |
| 120 | QSizePolicy.Ignored) |
| 121 | |
| 122 | tab1 = QWidget() |
| 123 | tableWidget = QTableWidget(10, 10) |
| 124 | |
| 125 | tab1hbox = QHBoxLayout() |
| 126 | tab1hbox.setContentsMargins(5, 5, 5, 5) |
| 127 | tab1hbox.addWidget(tableWidget) |
| 128 | tab1.setLayout(tab1hbox) |
| 129 | |
| 130 | tab2 = QWidget() |
| 131 | textEdit = QTextEdit() |
| 132 | |
| 133 | textEdit.setPlainText("Twinkle, twinkle, little star,\n" |
| 134 | "How I wonder what you are.\n" |
| 135 | "Up above the world so high,\n" |
| 136 | "Like a diamond in the sky.\n" |
| 137 | "Twinkle, twinkle, little star,\n" |
| 138 | "How I wonder what you are!\n") |
| 139 | |
| 140 | tab2hbox = QHBoxLayout() |
| 141 | tab2hbox.setContentsMargins(5, 5, 5, 5) |
| 142 | tab2hbox.addWidget(textEdit) |
| 143 | tab2.setLayout(tab2hbox) |
| 144 | |
| 145 | self.bottomLeftTabWidget.addTab(tab1, "&Table") |
| 146 | self.bottomLeftTabWidget.addTab(tab2, "Text &Edit") |
| 147 | |
| 148 | def createBottomRightGroupBox(self): |
| 149 | self.bottomRightGroupBox = QGroupBox("Group 3") |