diff options
author | fahim | 2015-05-19 18:16:17 +0530 |
---|---|---|
committer | fahim | 2015-05-19 18:16:17 +0530 |
commit | 7e471c072b18c3969ed5573dbe24923c2f678b5f (patch) | |
tree | c94a4e57b769140ea841add43b32b04d8f5d573e /src/ngspiceSimulation/NgspiceWidget.py | |
parent | 07e43f9abbf5e369543f090ccf89f565038241cb (diff) | |
download | eSim-7e471c072b18c3969ed5573dbe24923c2f678b5f.tar.gz eSim-7e471c072b18c3969ed5573dbe24923c2f678b5f.tar.bz2 eSim-7e471c072b18c3969ed5573dbe24923c2f678b5f.zip |
Subject: Added NgSpice window inside dock area.
Description: Added NgSpice window inside dock area.
Diffstat (limited to 'src/ngspiceSimulation/NgspiceWidget.py')
-rw-r--r-- | src/ngspiceSimulation/NgspiceWidget.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py new file mode 100644 index 00000000..51e41144 --- /dev/null +++ b/src/ngspiceSimulation/NgspiceWidget.py @@ -0,0 +1,26 @@ +from PyQt4 import QtGui,QtCore + + +class NgspiceWidget(QtGui.QWidget): + """ + This Class creates NgSpice Window + """ + def __init__(self,command): + QtGui.QWidget.__init__(self) + self.command = "ngspice "+command + + self.process = QtCore.QProcess(self) + self.terminal = QtGui.QWidget(self) + self.layout = QtGui.QVBoxLayout(self) + self.layout.addWidget(self.terminal) + + #Creating argument for process + self.args = ['-into', str(self.terminal.winId()),'-e', self.command] + self.process.start('xterm', self.args) + + + + + + + |