diff options
author | maddy-2 | 2019-05-29 22:59:53 +0530 |
---|---|---|
committer | nilshah98 | 2019-06-13 12:15:50 +0530 |
commit | cc9bb8d5d56e64b6e6b6ff2db988ff200b9f720d (patch) | |
tree | e00d208dcc744c6313ca5f614204236628ff55a1 /src/ngspiceSimulation/NgspiceWidget.py | |
parent | 1dd7f42e4fe21f7b854644536ff2be977f67e4a9 (diff) | |
download | eSim-cc9bb8d5d56e64b6e6b6ff2db988ff200b9f720d.tar.gz eSim-cc9bb8d5d56e64b6e6b6ff2db988ff200b9f720d.tar.bz2 eSim-cc9bb8d5d56e64b6e6b6ff2db988ff200b9f720d.zip |
ngspiceSimulation documentation added
Diffstat (limited to 'src/ngspiceSimulation/NgspiceWidget.py')
-rw-r--r-- | src/ngspiceSimulation/NgspiceWidget.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py index 5d98534e..695bfa50 100644 --- a/src/ngspiceSimulation/NgspiceWidget.py +++ b/src/ngspiceSimulation/NgspiceWidget.py @@ -4,9 +4,11 @@ import platform import os +# This Class creates NgSpice Window class NgspiceWidget(QtGui.QWidget): """ - This Class creates NgSpice Window + Includes functions that checks whether OS is linux or windows + and creates NgSpice window accordingly. """ def __init__(self, command, projPath): @@ -18,12 +20,10 @@ class NgspiceWidget(QtGui.QWidget): self.layout.addWidget(self.terminal) print("Argument to ngspice command : ", command) - + # For Linux OS if platform.system() == 'Linux': self.command = "cd " + projPath + ";ngspice " + command # Creating argument for process - # self.args = ['-into', str(self.terminal.winId()),\ - # '-hold','-e', self.command] self.args = ['-hold', '-e', self.command] self.process.start('xterm', self.args) self.obj_appconfig.process_obj.append(self.process) @@ -34,6 +34,7 @@ class NgspiceWidget(QtGui.QWidget): self.process.pid()) ) + # For Windows OS elif platform.system() == 'Windows': tempdir = os.getcwd() projPath = self.obj_appconfig.current_project["ProjectName"] |