summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsaurabhb172020-03-12 08:30:23 +0530
committersaurabhb172020-03-12 08:30:23 +0530
commit58b9db2a4eb8090c532d4bb465966b380a8eca8b (patch)
tree860f27a368c4f5a768df134fe712807819fd62fe
parenta5ecf0c0dc2c0b6fad2bfdf1ac47191ca680b3d3 (diff)
parent2ea4bdb9b08b2a5da5a0b6ad0a5fe6a82510b9ec (diff)
downloadeSim-58b9db2a4eb8090c532d4bb465966b380a8eca8b.tar.gz
eSim-58b9db2a4eb8090c532d4bb465966b380a8eca8b.tar.bz2
eSim-58b9db2a4eb8090c532d4bb465966b380a8eca8b.zip
Merge branch 'master' of https://github.com/FOSSEE/eSim
-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]