summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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