MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / createBottomRightGroupBox

Method createBottomRightGroupBox

gui-apps/app_pyqt5.py:148–180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

146 self.bottomLeftTabWidget.addTab(tab2, "Text &Edit")
147
148 def createBottomRightGroupBox(self):
149 self.bottomRightGroupBox = QGroupBox("Group 3")
150 self.bottomRightGroupBox.setCheckable(True)
151 self.bottomRightGroupBox.setChecked(True)
152
153 lineEdit = QLineEdit('s3cRe7')
154 lineEdit.setEchoMode(QLineEdit.Password)
155
156 spinBox = QSpinBox(self.bottomRightGroupBox)
157 spinBox.setValue(50)
158
159 dateTimeEdit = QDateTimeEdit(self.bottomRightGroupBox)
160 dateTimeEdit.setDateTime(QDateTime.currentDateTime())
161
162 slider = QSlider(Qt.Horizontal, self.bottomRightGroupBox)
163 slider.setValue(40)
164
165 scrollBar = QScrollBar(Qt.Horizontal, self.bottomRightGroupBox)
166 scrollBar.setValue(60)
167
168 dial = QDial(self.bottomRightGroupBox)
169 dial.setValue(30)
170 dial.setNotchesVisible(True)
171
172 layout = QGridLayout()
173 layout.addWidget(lineEdit, 0, 0, 1, 2)
174 layout.addWidget(spinBox, 1, 0, 1, 2)
175 layout.addWidget(dateTimeEdit, 2, 0, 1, 2)
176 layout.addWidget(slider, 3, 0)
177 layout.addWidget(scrollBar, 4, 0)
178 layout.addWidget(dial, 3, 1, 2, 1)
179 layout.setRowStretch(5, 1)
180 self.bottomRightGroupBox.setLayout(layout)
181
182 def createProgressBar(self):
183 self.progressBar = QProgressBar()

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected