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/SubcircuitTab.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/SubcircuitTab.py')
-rw-r--r-- | src/kicadtoNgspice/SubcircuitTab.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kicadtoNgspice/SubcircuitTab.py b/src/kicadtoNgspice/SubcircuitTab.py index bbac5592..fa51ac6a 100644 --- a/src/kicadtoNgspice/SubcircuitTab.py +++ b/src/kicadtoNgspice/SubcircuitTab.py @@ -14,9 +14,9 @@ class SubcircuitTab(QtGui.QWidget): It dynamically creates the widget for subcircuits. """ - def __init__(self,schematicInfo): + def __init__(self,schematicInfo,clarg1): - kicadFile = sys.argv[1] + kicadFile = clarg1 (projpath,filename)=os.path.split(kicadFile) project_name=os.path.basename(projpath) print "PROJECT NAME---------",project_name @@ -59,7 +59,7 @@ class SubcircuitTab(QtGui.QWidget): words = eachline.split() if eachline[0] == 'x': print "Words",words[0] - self.obj_trac.subcircuitList.append(words) + self.obj_trac.subcircuitList[project_name+words[0]]=words self.subcircuit_dict_beg[words[0]]=self.count subbox=QtGui.QGroupBox() subgrid=QtGui.QGridLayout() |