mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Geometry: Meshing: Update windows with radiobutton instead of checkbox.
This commit is contained in:
1 parent
e6178525d7
commit
387d462c2c
3 files changed
+55
-35
No files matched your search
@@ -36,13 +36,15 @@ class MeshingDialog(PamhyrDialog):
|
||||
_pamhyr_ui = "MeshingOptions"
|
||||
_pamhyr_name = "Meshing"
|
||||
|
||||
def __init__(self, parent=None):
|
||||
def __init__(self, reach, parent=None):
|
||||
super(MeshingDialog, self).__init__(
|
||||
title=self._pamhyr_name,
|
||||
options=[],
|
||||
parent=parent
|
||||
)
|
||||
|
||||
self._reach = reach
|
||||
|
||||
self._init_default_values()
|
||||
|
||||
def _init_default_values(self):
|
||||
@@ -55,8 +57,10 @@ class MeshingDialog(PamhyrDialog):
|
||||
self._space_step
|
||||
)
|
||||
|
||||
self.set_check_box("checkBox_lplan", self._lplan)
|
||||
self.set_check_box("checkBox_linear", self._linear)
|
||||
if self._linear:
|
||||
self.set_radio_button("radioButton_linear", True)
|
||||
else:
|
||||
self.set_radio_button("radioButton_spline", True)
|
||||
|
||||
@property
|
||||
def space_step(self):
|
||||
@@ -74,8 +78,7 @@ class MeshingDialog(PamhyrDialog):
|
||||
self._space_step = self.get_double_spin_box(
|
||||
"doubleSpinBox_space_step",
|
||||
)
|
||||
self._lplan = self.get_check_box("checkBox_lplan")
|
||||
self._linear = self.get_check_box("checkBox_linear")
|
||||
self._linear = self.get_radio_button("radioButton_linear")
|
||||
|
||||
super().accept()
|
||||
|
||||
|
||||
Reference in new issue
Block a user