summaryrefslogtreecommitdiff
path: root/src/frontEnd/DockArea.py
diff options
context:
space:
mode:
authorPranav P2023-05-04 09:36:47 +0530
committerPranav P2023-05-04 09:36:47 +0530
commit7ba6e484b01ee1e0f38a2b68c4abc8aed391b153 (patch)
tree072a85d2acfbc1f77a2166cecbb684d3fad4af40 /src/frontEnd/DockArea.py
parentc138ec3aebe4dc894600e0eabccf1659f2b5a838 (diff)
downloadeSim-7ba6e484b01ee1e0f38a2b68c4abc8aed391b153.tar.gz
eSim-7ba6e484b01ee1e0f38a2b68c4abc8aed391b153.tar.bz2
eSim-7ba6e484b01ee1e0f38a2b68c4abc8aed391b153.zip
Enabled cancel simulation button
Diffstat (limited to 'src/frontEnd/DockArea.py')
-rwxr-xr-xsrc/frontEnd/DockArea.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/frontEnd/DockArea.py b/src/frontEnd/DockArea.py
index 461240b9..4cab6261 100755
--- a/src/frontEnd/DockArea.py
+++ b/src/frontEnd/DockArea.py
@@ -117,9 +117,10 @@ class DockArea(QtWidgets.QMainWindow):
)
count = count + 1
- def ngspiceEditor(self, projDir):
+ def ngspiceEditor(self, projDir, timer):
""" This function creates widget for Ngspice window."""
self.projDir = projDir
+ self.qTimer = timer
self.projName = os.path.basename(self.projDir)
self.ngspiceNetlist = os.path.join(
self.projDir, self.projName + ".cir.out")
@@ -133,7 +134,7 @@ class DockArea(QtWidgets.QMainWindow):
self.ngspiceLayout = QtWidgets.QVBoxLayout()
self.ngspiceLayout.addWidget(
- NgspiceWidget(self.ngspiceNetlist, self.projDir)
+ NgspiceWidget(self.ngspiceNetlist, self.projDir, self.qTimer)
)
# Adding to main Layout