From cf6bb2edf063ba6d3415434899e8a73a42755aa0 Mon Sep 17 00:00:00 2001 From: Pranav P Date: Thu, 4 May 2023 19:26:04 +0530 Subject: Disabled multiple simulations --- src/progressBar/progressBar.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/progressBar') 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): -- cgit