mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Geometry: Meshing: Add lm parameter translate.
This commit is contained in:
1 parent
400b743feb
commit
0391775fed
3 files changed
+23
-3
No files matched your search
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user