summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrahulp132020-03-11 16:21:48 +0530
committerrahulp132020-03-11 16:21:48 +0530
commit2a13e3dea1d93ed9fc2612379a8c8715df716af6 (patch)
treedaecb354fda22d8436c137e5447e8395e89cc959
parent113b43f1cdf83b64ab7faf3fc9cea0181740ad50 (diff)
downloadeSim-2a13e3dea1d93ed9fc2612379a8c8715df716af6.tar.gz
eSim-2a13e3dea1d93ed9fc2612379a8c8715df716af6.tar.bz2
eSim-2a13e3dea1d93ed9fc2612379a8c8715df716af6.zip
resolved issue with Source indexing
-rw-r--r--src/kicadtoNgspice/KicadtoNgspice.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/kicadtoNgspice/KicadtoNgspice.py b/src/kicadtoNgspice/KicadtoNgspice.py
index c1421829..6d654158 100644
--- a/src/kicadtoNgspice/KicadtoNgspice.py
+++ b/src/kicadtoNgspice/KicadtoNgspice.py
@@ -376,7 +376,8 @@ class MainWindow(QtGui.QWidget):
attr_source = child
count = 1
- grand_child_count = 1
+ grand_child_count = 0
+ keys = list(obj_source.entry_var.keys())
for i in store_schematicInfo:
tmp_check = 0
@@ -387,9 +388,9 @@ class MainWindow(QtGui.QWidget):
tmp_check = 1
for grand_child in child:
grand_child.text = \
- str(obj_source.entry_var[grand_child_count].text())
+ str(obj_source.entry_var
+ [keys[grand_child_count]].text())
grand_child_count += 1
- grand_child_count += 1
if tmp_check == 0:
words = i.split(' ')
wordv = words[0]