From f26209f81ec15c103dd35b46f879918011158863 Mon Sep 17 00:00:00 2001 From: Pranav P Date: Sat, 15 Apr 2023 20:57:31 +0530 Subject: Added vertical and horizontal grids in progress bar designs --- src/progressBar/progressBar.py | 40 +++++++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/src/progressBar/progressBar.py b/src/progressBar/progressBar.py index a9e1d991..f082ed61 100644 --- a/src/progressBar/progressBar.py +++ b/src/progressBar/progressBar.py @@ -15,27 +15,38 @@ class Ui_Simulation(object): def setupUi(self, Simulation): Simulation.setObjectName("Simulation") Simulation.resize(1250, 652) + self.gridLayout = QtWidgets.QGridLayout(Simulation) + self.gridLayout.setObjectName("gridLayout") + self.verticalLayout = QtWidgets.QVBoxLayout() + self.verticalLayout.setObjectName("verticalLayout") self.progressBar = QtWidgets.QProgressBar(Simulation) - self.progressBar.setGeometry(QtCore.QRect(27, 32, 660, 31)) self.progressBar.setStyleSheet("") self.progressBar.setMaximum(0) self.progressBar.setProperty("value", -1) self.progressBar.setFormat("") self.progressBar.setObjectName("progressBar") + self.verticalLayout.addWidget(self.progressBar) self.simulationConsole = QtWidgets.QTextEdit(Simulation) - self.simulationConsole.setGeometry(QtCore.QRect(30, 90, 661, 430)) self.simulationConsole.setStyleSheet("") self.simulationConsole.setTextInteractionFlags(QtCore.Qt.NoTextInteraction) self.simulationConsole.setObjectName("simulationConsole") + self.verticalLayout.addWidget(self.simulationConsole) + self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1) + self.verticalLayout_2 = QtWidgets.QVBoxLayout() + self.verticalLayout_2.setObjectName("verticalLayout_2") self.pushButton = QtWidgets.QPushButton(Simulation) - self.pushButton.setGeometry(QtCore.QRect(839, 330, 241, 25)) self.pushButton.setObjectName("pushButton") + self.verticalLayout_2.addWidget(self.pushButton) self.pushButton_2 = QtWidgets.QPushButton(Simulation) - self.pushButton_2.setGeometry(QtCore.QRect(840, 220, 240, 25)) self.pushButton_2.setObjectName("pushButton_2") + self.verticalLayout_2.addWidget(self.pushButton_2) self.pushButton_3 = QtWidgets.QPushButton(Simulation) - self.pushButton_3.setGeometry(QtCore.QRect(840, 430, 240, 25)) self.pushButton_3.setObjectName("pushButton_3") + self.verticalLayout_2.addWidget(self.pushButton_3) + self.pushButton_4 = QtWidgets.QPushButton(Simulation) + self.pushButton_4.setObjectName("pushButton_4") + self.verticalLayout_2.addWidget(self.pushButton_4) + self.gridLayout.addLayout(self.verticalLayout_2, 0, 1, 1, 1) self.retranslateUi(Simulation) QtCore.QMetaObject.connectSlotsByName(Simulation) @@ -48,13 +59,24 @@ class Ui_Simulation(object): "p, li { white-space: pre-wrap; }\n" "
\n" "The quick brown fox jumped over the lazy dog