diff options
author | Rahul P | 2022-09-02 10:29:44 +0530 |
---|---|---|
committer | GitHub | 2022-09-02 10:29:44 +0530 |
commit | 2e399ea70b1aee563ed7be944d78d8501fcd0f8e (patch) | |
tree | 2ac163b16d68e7bb9306710c50e6fb2e564b3784 | |
parent | 5a115cb1e5c7bb2bff7e32aeed52ee2d290477c8 (diff) | |
parent | b60d9dd4bb88e459b83c1074493430461a580dce (diff) | |
download | eSim-2e399ea70b1aee563ed7be944d78d8501fcd0f8e.tar.gz eSim-2e399ea70b1aee563ed7be944d78d8501fcd0f8e.tar.bz2 eSim-2e399ea70b1aee563ed7be944d78d8501fcd0f8e.zip |
Merge pull request #203 from PatelVatsalB21/path_disabled
File path readonly for KicadtoNgspice Tabs
-rw-r--r-- | src/kicadtoNgspice/DeviceModel.py | 4 | ||||
-rw-r--r-- | src/kicadtoNgspice/SubcircuitTab.py | 2 |
2 files changed, 5 insertions, 1 deletions
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: |