summaryrefslogtreecommitdiff
path: root/src/ngspiceSimulation/NgspiceWidget.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/ngspiceSimulation/NgspiceWidget.py
parentc138ec3aebe4dc894600e0eabccf1659f2b5a838 (diff)
downloadeSim-7ba6e484b01ee1e0f38a2b68c4abc8aed391b153.tar.gz
eSim-7ba6e484b01ee1e0f38a2b68c4abc8aed391b153.tar.bz2
eSim-7ba6e484b01ee1e0f38a2b68c4abc8aed391b153.zip
Enabled cancel simulation button
Diffstat (limited to 'src/ngspiceSimulation/NgspiceWidget.py')
-rw-r--r--src/ngspiceSimulation/NgspiceWidget.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py
index 69654933..f87ab96e 100644
--- a/src/ngspiceSimulation/NgspiceWidget.py
+++ b/src/ngspiceSimulation/NgspiceWidget.py
@@ -8,7 +8,7 @@ import os
# This Class creates NgSpice Window
class NgspiceWidget(QtWidgets.QWidget):
- def __init__(self, command, projPath):
+ def __init__(self, command, projPath, timer):
"""
- Creates constructor for NgspiceWidget class.
- Checks whether OS is Linux or Windows and
@@ -18,7 +18,8 @@ class NgspiceWidget(QtWidgets.QWidget):
self.obj_appconfig = Appconfig()
self.process = QtCore.QProcess(self)
self.terminal = QtWidgets.QWidget(self)
- self.progressBarUi = progressBar.Ui_Form()
+ self.qTimer = timer
+ self.progressBarUi = progressBar.Ui_Form(self.process, self.qTimer)
self.progressBarUi.setupUi(self.terminal)
self.layout = QtWidgets.QVBoxLayout(self)
self.layout.addWidget(self.terminal)