Skip to content

Commit

Permalink
Merge pull request #203 from PatelVatsalB21/path_disabled
Browse files Browse the repository at this point in the history
File path readonly for KicadtoNgspice Tabs
  • Loading branch information
rahulp13 authored Sep 2, 2022
2 parents 5a115cb + b60d9dd commit 2e399ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/kicadtoNgspice/DeviceModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def __init__(self, schematicInfo, clarg1):
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:
Expand Down Expand Up @@ -146,6 +147,7 @@ def __init__(self, schematicInfo, clarg1):
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:
Expand Down Expand Up @@ -209,6 +211,7 @@ def __init__(self, schematicInfo, clarg1):
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:
Expand Down Expand Up @@ -273,6 +276,7 @@ def __init__(self, schematicInfo, clarg1):
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)
Expand Down
2 changes: 1 addition & 1 deletion src/kicadtoNgspice/SubcircuitTab.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(self, schematicInfo, clarg1):
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:
Expand Down

0 comments on commit 2e399ea

Please sign in to comment.