summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/Source.py
diff options
context:
space:
mode:
authornilshah982019-06-07 19:01:08 +0530
committernilshah982019-06-13 12:15:50 +0530
commitfd8107b2f5662851dd5d3a7388e46d6be1eb5125 (patch)
treeaf6fc5573021c7d00d515fdde0a7178cc0147236 /src/kicadtoNgspice/Source.py
parentaa20d92a95166a82f93a19594ede632de0666c8b (diff)
downloadeSim-fd8107b2f5662851dd5d3a7388e46d6be1eb5125.tar.gz
eSim-fd8107b2f5662851dd5d3a7388e46d6be1eb5125.tar.bz2
eSim-fd8107b2f5662851dd5d3a7388e46d6be1eb5125.zip
kicadtoNgspice documentation added
Diffstat (limited to 'src/kicadtoNgspice/Source.py')
-rw-r--r--src/kicadtoNgspice/Source.py30
1 files changed, 16 insertions, 14 deletions
diff --git a/src/kicadtoNgspice/Source.py b/src/kicadtoNgspice/Source.py
index d8e39af4..c9d50a26 100644
--- a/src/kicadtoNgspice/Source.py
+++ b/src/kicadtoNgspice/Source.py
@@ -25,22 +25,24 @@ class Source(QtGui.QWidget):
# Creating Source Widget
self.createSourceWidget(sourcelist, sourcelisttrack)
- """
- - This function dynamically create source widget in the
- Source tab of KicadtoNgSpice window
- - Depending on the type of source, ac, dc, sine, pwl, etc...
- source tab is created
- - All the entry fields, are kept into the entry_var
- tracked by self.count
- - Finally after each of the sourcelist is mapped to its input component
- we move to adding these to the track widget
- - Also check if any default values present from previous analysis and add
- them by default
- """
-
def createSourceWidget(self, sourcelist, sourcelisttrack):
+ """
+ - This function dynamically create source widget in the
+ Source tab of KicadtoNgSpice window
+ - Depending on the type of source, ac, dc, sine, pwl, etc...
+ source tab is created
+ - All the entry fields, are kept into the entry_var
+ tracked by self.count
+ - Finally after each of the sourcelist is mapped to its input component
+ we move to adding these to the track widget
+ - Also check if any default values present from previous analysis & add
+ them by default
+ - Each line in sourcelist corresponds to a source
+ - According to the source type modify the source and add it to the tab
+ """
print("============================================================")
- print("SOURCELISTTRACK", sourcelisttrack)
+ print("SOURCE LIST TRACK", sourcelisttrack)
+ print("SOURCE LIST", sourcelist)
print("============================================================")
kicadFile = self.clarg1
(projpath, filename) = os.path.split(kicadFile)