From 1dd7f42e4fe21f7b854644536ff2be977f67e4a9 Mon Sep 17 00:00:00 2001 From: nilshah98 Date: Fri, 7 Jun 2019 11:38:49 +0530 Subject: ngspiceSimulation documentation done --- src/ngspiceSimulation/NgspiceWidget.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ngspiceSimulation/NgspiceWidget.py') diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py index 52427681..5d98534e 100644 --- a/src/ngspiceSimulation/NgspiceWidget.py +++ b/src/ngspiceSimulation/NgspiceWidget.py @@ -27,10 +27,11 @@ class NgspiceWidget(QtGui.QWidget): self.args = ['-hold', '-e', self.command] self.process.start('xterm', self.args) self.obj_appconfig.process_obj.append(self.process) + print(self.obj_appconfig.proc_dict) ( self.obj_appconfig.proc_dict [self.obj_appconfig.current_project['ProjectName']].append( - self.process.pid()) + self.process.pid()) ) elif platform.system() == 'Windows': -- cgit From cc9bb8d5d56e64b6e6b6ff2db988ff200b9f720d Mon Sep 17 00:00:00 2001 From: maddy-2 Date: Wed, 29 May 2019 22:59:53 +0530 Subject: ngspiceSimulation documentation added --- src/ngspiceSimulation/NgspiceWidget.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/ngspiceSimulation/NgspiceWidget.py') 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"] -- cgit From a0f738ba15264b69d9d51755569408bdd8e383b5 Mon Sep 17 00:00:00 2001 From: nilshah98 Date: Fri, 7 Jun 2019 18:54:35 +0530 Subject: pep8 fixes and list models bug fixed --- src/ngspiceSimulation/NgspiceWidget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ngspiceSimulation/NgspiceWidget.py') diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py index 695bfa50..def1d4e9 100644 --- a/src/ngspiceSimulation/NgspiceWidget.py +++ b/src/ngspiceSimulation/NgspiceWidget.py @@ -31,7 +31,7 @@ class NgspiceWidget(QtGui.QWidget): ( self.obj_appconfig.proc_dict [self.obj_appconfig.current_project['ProjectName']].append( - self.process.pid()) + self.process.pid()) ) # For Windows OS -- cgit