From 22570451ec4e2a86f489125ca540b7a86d682286 Mon Sep 17 00:00:00 2001 From: Pranav P Date: Wed, 24 May 2023 12:14:06 +0530 Subject: Reduced passage of functions between objects via simulationEssentials --- src/progressBar/progressBar.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/progressBar') diff --git a/src/progressBar/progressBar.py b/src/progressBar/progressBar.py index e1b9be34..4631e16b 100644 --- a/src/progressBar/progressBar.py +++ b/src/progressBar/progressBar.py @@ -13,11 +13,8 @@ import os class Ui_Form(object): - def __init__(self, qProcess, simulationEssentials): + def __init__(self, qProcess): self.qProcess = qProcess - self.enableButtons = simulationEssentials['enableButtons'] - self.isSimulationSuccess = simulationEssentials['isSimulationSuccess'] - self.resetSimulationVariables = simulationEssentials['resetSimulationVariables'] self.iconDir = "../progressBar/icons" # super().__init__() def setupUi(self, Form): @@ -148,7 +145,6 @@ class Ui_Form(object): return self.showProgressRunning() self.simulationConsole.setText("") - self.resetSimulationVariables() self.qProcess.start('ngspice', self.args) def changeColor(self): -- cgit