diff options
author | xoher | 2015-07-28 02:36:59 +0530 |
---|---|---|
committer | xoher | 2015-07-28 02:36:59 +0530 |
commit | 034bc2734d017f3bdc94a309102b3141cb623ce9 (patch) | |
tree | 8d0143881ede180b69775bcfb19f095b2875a9b0 /src/kicadtoNgspice/Analysis.py | |
parent | 6d0631e034026b958437456ae461f21ba8429813 (diff) | |
download | eSim-034bc2734d017f3bdc94a309102b3141cb623ce9.tar.gz eSim-034bc2734d017f3bdc94a309102b3141cb623ce9.tar.bz2 eSim-034bc2734d017f3bdc94a309102b3141cb623ce9.zip |
Kicad to NgSpice conversion opens in dock area
Diffstat (limited to 'src/kicadtoNgspice/Analysis.py')
-rw-r--r-- | src/kicadtoNgspice/Analysis.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/kicadtoNgspice/Analysis.py b/src/kicadtoNgspice/Analysis.py index 27dc740f..bdebf114 100644 --- a/src/kicadtoNgspice/Analysis.py +++ b/src/kicadtoNgspice/Analysis.py @@ -9,7 +9,8 @@ class Analysis(QtGui.QWidget): """ This class create Analysis Tab in KicadtoNgspice Window. """ - def __init__(self): + def __init__(self,clarg1): + self.clarg1=clarg1 QtGui.QWidget.__init__(self) self.track_obj= TrackWidget.TrackWidget() self.count =0 @@ -21,6 +22,7 @@ class Analysis(QtGui.QWidget): self.dc_parameter={} self.tran_parameter= {} self.createAnalysisWidget() + def createAnalysisWidget(self): @@ -86,7 +88,7 @@ class Analysis(QtGui.QWidget): self.track_obj.set_CheckBox["ITEMS"]="TRAN" def createACgroup(self): - kicadFile = sys.argv[1] + kicadFile = self.clarg1 (projpath,filename)=os.path.split(kicadFile) project_name=os.path.basename(projpath) print "PROJECT NAME---------",project_name @@ -226,7 +228,7 @@ class Analysis(QtGui.QWidget): pass def createDCgroup(self): - kicadFile = sys.argv[1] + kicadFile = self.clarg1 (projpath,filename)=os.path.split(kicadFile) project_name=os.path.basename(projpath) print "PROJECT NAME---------",project_name @@ -370,7 +372,7 @@ class Analysis(QtGui.QWidget): self.track_obj.op_check.append(0) def createTRANgroup(self): - kicadFile = sys.argv[1] + kicadFile = self.clarg1 (projpath,filename)=os.path.split(kicadFile) project_name=os.path.basename(projpath) print "PROJECT NAME---------",project_name |