diff options
author | Pranav P | 2023-05-04 19:26:04 +0530 |
---|---|---|
committer | Pranav P | 2023-05-04 19:26:04 +0530 |
commit | cf6bb2edf063ba6d3415434899e8a73a42755aa0 (patch) | |
tree | b4f043ce7b8266ba3b4227d716b292adfa69e55c /src/progressBar | |
parent | 299b330406e6124ba3542833d8cb9b82cfc10d03 (diff) | |
download | eSim-cf6bb2edf063ba6d3415434899e8a73a42755aa0.tar.gz eSim-cf6bb2edf063ba6d3415434899e8a73a42755aa0.tar.bz2 eSim-cf6bb2edf063ba6d3415434899e8a73a42755aa0.zip |
Disabled multiple simulations
Diffstat (limited to 'src/progressBar')
-rw-r--r-- | src/progressBar/progressBar.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/progressBar/progressBar.py b/src/progressBar/progressBar.py index be705ce1..4bc1e982 100644 --- a/src/progressBar/progressBar.py +++ b/src/progressBar/progressBar.py @@ -12,9 +12,10 @@ from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): - def __init__(self, qProcess, qTimer): + def __init__(self, qProcess, simulationEssentials): self.qProcess = qProcess - self.qTimer = qTimer + self.qTimer = simulationEssentials['timer'] + self.enableButtons = simulationEssentials['enableButtons'] # super().__init__() def setupUi(self, Form): Form.setObjectName("Form") @@ -97,10 +98,10 @@ class Ui_Form(object): self.cancel_simulation_button.clicked.connect(self.cancelSimulation) def writeIntoConsole(self, consoleLog): - self.simulationConsole.insertPlainText(consoleLog) + self.simulationConsole.insertPlainText(consoleLog) - def showProgressCompleted(self): - self.progressBar.setMaximum(100) + def showProgressCompleted(self): + self.progressBar.setMaximum(100) self.progressBar.setProperty("value", 100) def cancelSimulation(self): |