summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/DeviceModel.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/kicadtoNgspice/DeviceModel.py')
-rwxr-xr-xsrc/kicadtoNgspice/DeviceModel.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kicadtoNgspice/DeviceModel.py b/src/kicadtoNgspice/DeviceModel.py
index 0967333c..f16b30ab 100755
--- a/src/kicadtoNgspice/DeviceModel.py
+++ b/src/kicadtoNgspice/DeviceModel.py
@@ -261,6 +261,7 @@ class DeviceModel(QtWidgets.QWidget):
words[4])
self.entry_var[self.count] = QtWidgets.QLineEdit()
self.entry_var[self.count].setText("")
+ self.entry_var[self.count].setReadOnly(True)
global path_name
try:
@@ -325,6 +326,7 @@ class DeviceModel(QtWidgets.QWidget):
words[3])
self.entry_var[self.count] = QtWidgets.QLineEdit()
self.entry_var[self.count].setText("")
+ self.entry_var[self.count].setReadOnly(True)
# global path_name
try:
for child in self.root:
@@ -388,6 +390,7 @@ class DeviceModel(QtWidgets.QWidget):
words[4])
self.entry_var[self.count] = QtWidgets.QLineEdit()
self.entry_var[self.count].setText("")
+ self.entry_var[self.count].setReadOnly(True)
# global path_name
try:
for child in self.root:
@@ -452,6 +455,7 @@ class DeviceModel(QtWidgets.QWidget):
words[5])
self.entry_var[self.count] = QtWidgets.QLineEdit()
self.entry_var[self.count].setText("")
+ self.entry_var[self.count].setReadOnly(True)
mosfetgrid.addWidget(self.entry_var[self.count], self.row, 1)
self.addbtn = QtWidgets.QPushButton("Add")
self.addbtn.setObjectName("%d" % self.count)