Geometry: Meshing: Add lm parameter translate.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-02-12 10:53:00 +01:00
1 parent 400b743feb
commit 0391775fed
3 files changed
+23 -3

No files matched your search

+11 -3
View File
@@ -36,9 +36,10 @@ class MeshingDialog(PamhyrDialog):
_pamhyr_ui = "MeshingOptions"
_pamhyr_name = "Meshing"
def __init__(self, reach, parent=None):
def __init__(self, reach, trad=None, parent=None):
super(MeshingDialog, self).__init__(
title=self._pamhyr_name,
trad=trad,
options=[],
parent=parent
)
@@ -66,8 +67,14 @@ class MeshingDialog(PamhyrDialog):
self._space_step
)
lm_dict = self._trad.get_dict("lm_dict")
self.combobox_add_items(
"comboBox_lm", ["1", "2", "3"]
"comboBox_lm", list(
map(
lambda x: lm_dict[x],
["1", "2", "3"]
)
)
)
self.set_combobox_text("comboBox_lm", self._lm)
@@ -167,7 +174,8 @@ class MeshingDialog(PamhyrDialog):
self._begin_dir = self.get_combobox_text("comboBox_begin_gl")
self._end_dir = self.get_combobox_text("comboBox_end_gl")
self._lm = self.get_combobox_text("comboBox_lm")
r_lm_dict = self._trad.get_dict("r_lm_dict")
self._lm = r_lm_dict[self.get_combobox_text("comboBox_lm")]
super().accept()