Pamhyr2: Extend RO mode to Friction, Strickler, HS, SP and REPLines.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-09-04 17:11:15 +02:00
1 parent fd54116d55
commit fb12f498a7
7 files changed
+87 -36

No files matched your search

+6 -1
View File
@@ -87,6 +87,11 @@ class SolverParametersWindow(PamhyrWindow):
self._table = {}
self._tab_widget = self.find(QTabWidget, f"tabWidget")
if self._study.is_editable():
editable_headers = ["value"]
else:
editable_headers = []
for st in solver_type_list:
# Create widgets
widget = QWidget()
@@ -102,7 +107,7 @@ class SolverParametersWindow(PamhyrWindow):
data=self._study.river,
opt_data=st,
table_headers=self._trad.get_dict("table_headers"),
editable_headers=["value"],
editable_headers=editable_headers,
trad=self._trad,
undo=self._undo_stack[st],
)