summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/SubcircuitTab.py
diff options
context:
space:
mode:
authorFahim2015-07-28 10:04:11 +0530
committerFahim2015-07-28 10:04:11 +0530
commit1c21a0ad49a75671a9fd775463ab6e6e6f3a8e36 (patch)
treefb80c62ab8d751631a7cde77c4fdbfe6c26ec02c /src/kicadtoNgspice/SubcircuitTab.py
parent87c8704e95e25ee5070d22b51ca50cca51b5e9f7 (diff)
parenta0a17b4f1f11dfac201a6d660cbb94eac1cfc4a4 (diff)
downloadeSim-1c21a0ad49a75671a9fd775463ab6e6e6f3a8e36.tar.gz
eSim-1c21a0ad49a75671a9fd775463ab6e6e6f3a8e36.tar.bz2
eSim-1c21a0ad49a75671a9fd775463ab6e6e6f3a8e36.zip
Merge pull request #43 from FOSSEE-Manipal/master
Kicad to NgSpice conversion window opens in Dock area and other changes
Diffstat (limited to 'src/kicadtoNgspice/SubcircuitTab.py')
-rw-r--r--src/kicadtoNgspice/SubcircuitTab.py6
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()