summaryrefslogtreecommitdiff
path: root/src/frontEnd/Application.py
diff options
context:
space:
mode:
authorPranav P2023-05-19 11:16:58 +0530
committerPranav P2023-05-19 11:16:58 +0530
commit1c0b9197069c12f2a9b0c35be936e97d38c6a372 (patch)
tree0ddc8b79294c721d3dae2436b65e2ca1eb9a958d /src/frontEnd/Application.py
parent5ade06b5d3559b1d01dafdfabcb71f169bfd633c (diff)
downloadeSim-1c0b9197069c12f2a9b0c35be936e97d38c6a372.tar.gz
eSim-1c0b9197069c12f2a9b0c35be936e97d38c6a372.tar.bz2
eSim-1c0b9197069c12f2a9b0c35be936e97d38c6a372.zip
Added redo simulation button to progressbar window
Diffstat (limited to 'src/frontEnd/Application.py')
-rw-r--r--src/frontEnd/Application.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index 0f8e7dac..7457ba7d 100644
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -621,6 +621,10 @@ class Application(QtWidgets.QMainWindow):
def isSimulationSuccess(self):
return self.is_file_changed
+
+ def resetSimulationVariables(self):
+ self.count = 0
+ self.currTime = 0
def open_ngspice(self):
"""This Function execute ngspice on current project."""
@@ -632,10 +636,11 @@ class Application(QtWidgets.QMainWindow):
"timer": self.timer,
"enableButtons": self.enableButtons,
"isSimulationSuccess": self.isSimulationSuccess,
+ "resetSimulationVariables": self.resetSimulationVariables,
}
if self.projDir is not None:
- currTime = time.time()
+ self.currTime = time.time()
# Edited by Sumanto Kar 25/08/2021
self.enableButtons(False)
@@ -656,7 +661,7 @@ class Application(QtWidgets.QMainWindow):
self.count = 0
self.timer.setInterval(1000)
- self.timer.timeout.connect(lambda: self.check_change_in_plotfile(currTime))
+ self.timer.timeout.connect(lambda: self.check_change_in_plotfile(self.currTime))
self.timer.start()
else: