summaryrefslogtreecommitdiff
path: root/src/ngspiceSimulation
diff options
context:
space:
mode:
authorPranav P2023-04-15 00:36:49 +0530
committerPranav P2023-04-15 00:36:49 +0530
commit70b7b1968d05b1bb772be7029ca9fa460c105ed7 (patch)
treebc4d62e84fac9e5bcff1367ca3cf87aecd22701c /src/ngspiceSimulation
parentc478715878df6fe972164c8d64220661b3798bb0 (diff)
downloadeSim-70b7b1968d05b1bb772be7029ca9fa460c105ed7.tar.gz
eSim-70b7b1968d05b1bb772be7029ca9fa460c105ed7.tar.bz2
eSim-70b7b1968d05b1bb772be7029ca9fa460c105ed7.zip
Added new progressBar to dockarea
Diffstat (limited to 'src/ngspiceSimulation')
-rw-r--r--src/ngspiceSimulation/NgspiceWidget.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py
index 651b421d..090e681e 100644
--- a/src/ngspiceSimulation/NgspiceWidget.py
+++ b/src/ngspiceSimulation/NgspiceWidget.py
@@ -18,6 +18,8 @@ class NgspiceWidget(QtWidgets.QWidget):
self.obj_appconfig = Appconfig()
self.process = QtCore.QProcess(self)
self.terminal = QtWidgets.QWidget(self)
+ self.progressBarUi = progressBar.Ui_Simulation()
+ self.progressBarUi.setupUi(self.terminal)
self.layout = QtWidgets.QVBoxLayout(self)
self.layout.addWidget(self.terminal)
self.errorFlag = False
@@ -47,7 +49,6 @@ class NgspiceWidget(QtWidgets.QWidget):
# Creating argument for process
self.args = ['-b', '-r', command.replace(".cir.out", ".raw"), command]
self.process.setWorkingDirectory(projPath)
- self.launchProgressBar()
self.process.start('ngspice', self.args)
self.process.readyReadStandardOutput.connect(lambda: self.readyReadAll())
self.process.finished.connect(self.progressBarUi.showProgressCompleted)
@@ -73,8 +74,8 @@ class NgspiceWidget(QtWidgets.QWidget):
self.errorFlag = True
self.progressBarUi.writeIntoConsole(str(stderror.data(), encoding='utf-8'))
- def launchProgressBar(self):
- self.progressBar = QtWidgets.QWidget()
- self.progressBarUi = progressBar.Ui_Dialog()
- self.progressBarUi.setupUi(self.progressBar)
- self.progressBar.show()
+ # def launchProgressBar(self):
+ # self.progressBar = QtWidgets.QWidget()
+ # self.progressBarUi = progressBar.Ui_Dialog()
+ # self.progressBarUi.setupUi(self.progressBar)
+ # self.progressBar.show()