diff options
author | Rahul P | 2020-03-11 17:25:51 +0530 |
---|---|---|
committer | GitHub | 2020-03-11 17:25:51 +0530 |
commit | 2ea4bdb9b08b2a5da5a0b6ad0a5fe6a82510b9ec (patch) | |
tree | 7bad57c3bfde55628eb30fda84235f6d668d9501 /src/kicadtoNgspice/KicadtoNgspice.py | |
parent | 1e7e8581f3823ab16b193b80da463e7a1e4cba28 (diff) | |
parent | 2a13e3dea1d93ed9fc2612379a8c8715df716af6 (diff) | |
download | eSim-2ea4bdb9b08b2a5da5a0b6ad0a5fe6a82510b9ec.tar.gz eSim-2ea4bdb9b08b2a5da5a0b6ad0a5fe6a82510b9ec.tar.bz2 eSim-2ea4bdb9b08b2a5da5a0b6ad0a5fe6a82510b9ec.zip |
Merge pull request #136 from rahulp13/master
resolved issue with Source indexing
Diffstat (limited to 'src/kicadtoNgspice/KicadtoNgspice.py')
-rw-r--r-- | src/kicadtoNgspice/KicadtoNgspice.py | 7 |
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] |