summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/Source.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/Source.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/Source.py')
-rw-r--r--src/kicadtoNgspice/Source.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kicadtoNgspice/Source.py b/src/kicadtoNgspice/Source.py
index e0d0fe19..4841ab07 100644
--- a/src/kicadtoNgspice/Source.py
+++ b/src/kicadtoNgspice/Source.py
@@ -12,11 +12,12 @@ class Source(QtGui.QWidget):
This class create Source Tab of KicadtoNgSpice Window.
"""
- def __init__(self,sourcelist,sourcelisttrack):
+ def __init__(self,sourcelist,sourcelisttrack,clarg1):
QtGui.QWidget.__init__(self)
self.obj_track = TrackWidget.TrackWidget()
#Variable
self.count = 1
+ self.clarg1=clarg1
self.start = 0
self.end = 0
self.row = 0
@@ -32,7 +33,7 @@ class Source(QtGui.QWidget):
"""
This function dynamically create source widget in the Source tab of KicadtoNgSpice window
"""
- kicadFile = sys.argv[1]
+ kicadFile = self.clarg1
(projpath,filename)=os.path.split(kicadFile)
project_name=os.path.basename(projpath)
print "PROJECT NAME---------",project_name