From 1c0b9197069c12f2a9b0c35be936e97d38c6a372 Mon Sep 17 00:00:00 2001 From: Pranav P Date: Fri, 19 May 2023 11:16:58 +0530 Subject: Added redo simulation button to progressbar window --- src/progressBar/progressBar.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/progressBar') diff --git a/src/progressBar/progressBar.py b/src/progressBar/progressBar.py index 24edb865..5b667db7 100644 --- a/src/progressBar/progressBar.py +++ b/src/progressBar/progressBar.py @@ -18,6 +18,7 @@ class Ui_Form(object): self.qTimer = simulationEssentials['timer'] self.enableButtons = simulationEssentials['enableButtons'] self.isSimulationSuccess = simulationEssentials['isSimulationSuccess'] + self.resetSimulationVariables = simulationEssentials['resetSimulationVariables'] self.iconDir = "../progressBar/icons" # super().__init__() def setupUi(self, Form): @@ -49,6 +50,10 @@ class Ui_Form(object): self.progressBar.setFormat("") self.progressBar.setObjectName("progressBar") self.horizontalLayout.addWidget(self.progressBar) + self.redo_simulation_button = QtWidgets.QPushButton(self.verticalLayoutWidget) + self.redo_simulation_button.setMaximumSize(QtCore.QSize(16777215, 35)) + self.redo_simulation_button.setObjectName("redo_simulation_button") + self.horizontalLayout.addWidget(self.redo_simulation_button) self.cancel_simulation_button = QtWidgets.QPushButton(self.verticalLayoutWidget) self.cancel_simulation_button.setMaximumSize(QtCore.QSize(16777215, 35)) self.cancel_simulation_button.setObjectName("cancel_simulation_button") @@ -85,6 +90,7 @@ class Ui_Form(object): def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) + self.redo_simulation_button.setText(_translate("Form", "Redo Simulation")) self.cancel_simulation_button.setText(_translate("Form", "Cancel Simulation")) self.simulationConsole.setHtml(_translate("Form", "\n" "