summaryrefslogtreecommitdiff
path: root/src/ngspiceSimulation/NgspiceWidget.py
diff options
context:
space:
mode:
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())