| 75 | self.progressBar.setValue(curVal + (maxVal - curVal) // 100) |
| 76 | |
| 77 | def createTopLeftGroupBox(self): |
| 78 | self.topLeftGroupBox = QGroupBox("Group 1") |
| 79 | |
| 80 | radioButton1 = QRadioButton("Radio button 1") |
| 81 | radioButton2 = QRadioButton("Radio button 2") |
| 82 | radioButton3 = QRadioButton("Radio button 3") |
| 83 | radioButton1.setChecked(True) |
| 84 | |
| 85 | checkBox = QCheckBox("Tri-state check box") |
| 86 | checkBox.setTristate(True) |
| 87 | checkBox.setCheckState(Qt.PartiallyChecked) |
| 88 | |
| 89 | layout = QVBoxLayout() |
| 90 | layout.addWidget(radioButton1) |
| 91 | layout.addWidget(radioButton2) |
| 92 | layout.addWidget(radioButton3) |
| 93 | layout.addWidget(checkBox) |
| 94 | layout.addStretch(1) |
| 95 | self.topLeftGroupBox.setLayout(layout) |
| 96 | |
| 97 | def createTopRightGroupBox(self): |
| 98 | self.topRightGroupBox = QGroupBox("Group 2") |