diff options
author | fahim | 2015-05-15 12:06:14 +0530 |
---|---|---|
committer | fahim | 2015-05-15 12:06:14 +0530 |
commit | 657794c3c482f8b8d8964a0b81d5d5c1e43ee346 (patch) | |
tree | 76e8df7c6edd0d46c3fd42d24fc2321ed780e4d4 /src/frontEnd | |
parent | 9469147242465102059e0703b9532e17d63983bc (diff) | |
download | eSim-657794c3c482f8b8d8964a0b81d5d5c1e43ee346.tar.gz eSim-657794c3c482f8b8d8964a0b81d5d5c1e43ee346.tar.bz2 eSim-657794c3c482f8b8d8964a0b81d5d5c1e43ee346.zip |
Subject: Updated openNgspice function
Description: updated openNgspice function. Added return value which will
be used to call python plotting function
Diffstat (limited to 'src/frontEnd')
-rwxr-xr-x | src/frontEnd/Application.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py index f7e5034d..7dee39a7 100755 --- a/src/frontEnd/Application.py +++ b/src/frontEnd/Application.py @@ -98,7 +98,7 @@ class Application(QtGui.QMainWindow): self.conversion.triggered.connect(self.obj_kicad.openKicadToNgspice) self.ngspice = QtGui.QAction(QtGui.QIcon('../images/default.png'), '<b>Simulation</b>', self) - self.ngspice.triggered.connect(self.obj_kicad.openNgspice) + self.ngspice.triggered.connect(self.open_ngspice) self.footprint = QtGui.QAction(QtGui.QIcon('../images/default.png'),'<b>Footprint Editor</b>',self) self.footprint.triggered.connect(self.obj_kicad.openFootprint) @@ -151,7 +151,19 @@ class Application(QtGui.QMainWindow): self.obj_Mainview.obj_projectExplorer.addTreeNode(directory, filelist) except: pass - #self.setCentralWidget(self.obj_Mainview) + + def open_ngspice(self): + """ + This Function execute ngspice on current project + """ + + ret_val = self.obj_kicad.openNgspice() + + if ret_val: + self.obj_Mainview.obj_dockarea.plottingEditor() + + else: + print "Return False" def exit_project(self): |