summaryrefslogtreecommitdiff
path: root/src/ngspiceSimulation/NgspiceWidget.py
diff options
context:
space:
mode:
authorfahim2015-05-20 15:49:06 +0530
committerfahim2015-05-20 15:49:06 +0530
commita062393843db4033f11837a3c7800136c00fef36 (patch)
tree84e870fb08b3a9a7e8d4ceb9e40a871b02b4e57e /src/ngspiceSimulation/NgspiceWidget.py
parent73e306db40503eba8f80a3a3508aebe76081ea2b (diff)
downloadeSim-a062393843db4033f11837a3c7800136c00fef36.tar.gz
eSim-a062393843db4033f11837a3c7800136c00fef36.tar.bz2
eSim-a062393843db4033f11837a3c7800136c00fef36.zip
Subject: Added refresh button in Project explorer.
Description: Added refresh button in project explorer.
Diffstat (limited to 'src/ngspiceSimulation/NgspiceWidget.py')
-rw-r--r--src/ngspiceSimulation/NgspiceWidget.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py
index a70a9b48..e61c4a61 100644
--- a/src/ngspiceSimulation/NgspiceWidget.py
+++ b/src/ngspiceSimulation/NgspiceWidget.py
@@ -1,5 +1,5 @@
from PyQt4 import QtGui,QtCore
-
+from configuration.Appconfig import Appconfig
class NgspiceWidget(QtGui.QWidget):
"""
@@ -7,6 +7,7 @@ class NgspiceWidget(QtGui.QWidget):
"""
def __init__(self,command):
QtGui.QWidget.__init__(self)
+ self.obj_appconfig = Appconfig()
self.command = "ngspice "+command
self.process = QtCore.QProcess(self)
@@ -17,7 +18,9 @@ class NgspiceWidget(QtGui.QWidget):
#Creating argument for process
self.args = ['-into', str(self.terminal.winId()),'-hold','-e', self.command]
self.process.start('xterm', self.args)
-
+ print "Children ",self.process
+ #Adding PID
+ #self.obj_appconfig.procThread_list.append(self.process.pid())