LC: Update with functional window LC and Edit.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-05-12 16:15:34 +02:00
1 parent 115d84d436
commit f1d82b2f86
10 files changed
+183 -48

No files matched your search

+4 -4
View File
@@ -38,7 +38,7 @@ class EditLateralContributionWindow(ASubMainWindow, ListedSubWindow):
self.compute_title()
super(EditLateralContributionWindow, self).__init__(
name=self._title, ui="EditLateralContributions", parent=parent
name=self._title, ui="EditLateralContribution", parent=parent
)
self.ui.setWindowTitle(self._title)
@@ -50,13 +50,13 @@ class EditLateralContributionWindow(ASubMainWindow, ListedSubWindow):
def compute_title(self):
if self._data is not None:
node_name = (self._data.node.name if self._data.node is not None
edge_name = (self._data.edge.name if self._data.edge is not None
else _translate("LateralContribution", "Not associate"))
self._title = (
_translate("Edit boundary condition", self._title) +
_translate("Edit Lateral contribution", self._title) +
f" - {self._study.name} " +
f" - {self._data.name} " +
f"({long_types[self._data.bctype]} - {node_name})"
f"({long_types[self._data.lctype]} - {edge_name})"
)
def setup_sc(self):