summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrahulp132020-03-02 16:28:11 +0530
committerrahulp132020-03-02 16:28:11 +0530
commita62f5472f9220e51ede51c4d2b98ec154b08f4eb (patch)
treede305f286daf5a1171fd093bed0bafd877efe1fb /src
parent9fcc73d1b18aa763bb918a392a152688cf1fb1ea (diff)
downloadeSim-a62f5472f9220e51ede51c4d2b98ec154b08f4eb.tar.gz
eSim-a62f5472f9220e51ede51c4d2b98ec154b08f4eb.tar.bz2
eSim-a62f5472f9220e51ede51c4d2b98ec154b08f4eb.zip
removed str displaying 'None' on fields
Diffstat (limited to 'src')
-rw-r--r--src/kicadtoNgspice/KicadtoNgspice.py2
-rw-r--r--src/kicadtoNgspice/Model.py5
-rw-r--r--src/kicadtoNgspice/Source.py14
3 files changed, 10 insertions, 11 deletions
diff --git a/src/kicadtoNgspice/KicadtoNgspice.py b/src/kicadtoNgspice/KicadtoNgspice.py
index b47f2c38..c1421829 100644
--- a/src/kicadtoNgspice/KicadtoNgspice.py
+++ b/src/kicadtoNgspice/KicadtoNgspice.py
@@ -217,7 +217,7 @@ class MainWindow(QtGui.QWidget):
# self.tabWidget.TabShape(QtGui.QTabWidget.Rounded)
self.tabWidget.addTab(self.analysisTab, "Analysis")
self.tabWidget.addTab(self.sourceTab, "Source Details")
- self.tabWidget.addTab(self.modelTab, "NgSpice Model")
+ self.tabWidget.addTab(self.modelTab, "Ngspice Model")
self.tabWidget.addTab(self.deviceModelTab, "Device Modeling")
self.tabWidget.addTab(self.subcircuitTab, "Subcircuits")
self.mainLayout = QtGui.QVBoxLayout()
diff --git a/src/kicadtoNgspice/Model.py b/src/kicadtoNgspice/Model.py
index 6de6d8df..a5757702 100644
--- a/src/kicadtoNgspice/Model.py
+++ b/src/kicadtoNgspice/Model.py
@@ -82,8 +82,7 @@ class Model(QtGui.QWidget):
if child.text == line[2] \
and child.tag == line[3]:
self.obj_trac.model_entry_var
- [self.nextcount].setText(
- str(child[i].text))
+ [self.nextcount].setText(child[i].text)
i = i + 1
except BaseException:
pass
@@ -108,7 +107,7 @@ class Model(QtGui.QWidget):
for child in root:
if child.text == line[2] and child.tag == line[3]:
self.obj_trac.model_entry_var[self.nextcount] \
- .setText(str(child[i].text))
+ .setText(child[i].text)
i = i + 1
except BaseException:
pass
diff --git a/src/kicadtoNgspice/Source.py b/src/kicadtoNgspice/Source.py
index fdcd4adc..e42899e3 100644
--- a/src/kicadtoNgspice/Source.py
+++ b/src/kicadtoNgspice/Source.py
@@ -102,9 +102,9 @@ class Source(QtGui.QWidget):
if child.tag == templist2[0] and \
child.text == line[2]:
self.entry_var[self.count] \
- .setText(str(child[0].text))
+ .setText(child[0].text)
self.entry_var[self.count + 1] \
- .setText(str(child[1].text))
+ .setText(child[1].text)
except BaseException:
pass
# Value Need to check previuouse value
@@ -148,7 +148,7 @@ class Source(QtGui.QWidget):
if child.tag == templist2[0] \
and child.text == line[2]:
self.entry_var[self.count] \
- .setText(str(child[0].text))
+ .setText(child[0].text)
except BaseException:
pass
@@ -192,7 +192,7 @@ class Source(QtGui.QWidget):
if child.tag == templist2[0] \
and child.text == line[2]:
self.entry_var[self.count] \
- .setText(str(child[it-4].text))
+ .setText(child[it-4].text)
except BaseException:
pass
@@ -235,7 +235,7 @@ class Source(QtGui.QWidget):
if child.tag == templist2[0] \
and child.text == line[2]:
self.entry_var[self.count] \
- .setText(str(child[it-4].text))
+ .setText(child[it-4].text)
except BaseException:
pass
@@ -275,7 +275,7 @@ class Source(QtGui.QWidget):
if child.tag == templist2[0] \
and child.text == line[2]:
self.entry_var[self.count] \
- .setText(str(child[0].text))
+ .setText(child[0].text)
except BaseException:
pass
@@ -318,7 +318,7 @@ class Source(QtGui.QWidget):
if child.tag == templist2[0] \
and child.text == line[2]:
self.entry_var[self.count] \
- .setText(str(child[it-4].text))
+ .setText(child[it-4].text)
except BaseException:
pass