From b60d9dd4bb88e459b83c1074493430461a580dce Mon Sep 17 00:00:00 2001
From: PatelVatsalB21
Date: Thu, 1 Sep 2022 14:14:06 +0530
Subject: File Path Disabled for KicadToNgspice Tabs

---
 src/kicadtoNgspice/DeviceModel.py   | 4 ++++
 src/kicadtoNgspice/SubcircuitTab.py | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/kicadtoNgspice/DeviceModel.py b/src/kicadtoNgspice/DeviceModel.py
index 5fd4d829..c52ea2d0 100644
--- a/src/kicadtoNgspice/DeviceModel.py
+++ b/src/kicadtoNgspice/DeviceModel.py
@@ -82,6 +82,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:
@@ -146,6 +147,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 root:
@@ -209,6 +211,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 root:
@@ -273,6 +276,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)
diff --git a/src/kicadtoNgspice/SubcircuitTab.py b/src/kicadtoNgspice/SubcircuitTab.py
index 6b98167d..59bc3ffb 100644
--- a/src/kicadtoNgspice/SubcircuitTab.py
+++ b/src/kicadtoNgspice/SubcircuitTab.py
@@ -71,7 +71,7 @@ class SubcircuitTab(QtWidgets.QWidget):
                 subbox.setTitle("Add subcircuit for " + words[len(words) - 1])
                 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 root:
-- 
cgit