Meshing: Add minimal meshing option dialog.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-02-07 16:04:59 +01:00
1 parent 34038d2844
commit ab276db78c
5 files changed
+274 -7

No files matched your search

+24 -1
View File
@@ -35,7 +35,7 @@ from PyQt5.QtWidgets import (
QRadioButton, QComboBox, QFileDialog,
QMessageBox, QTableView, QAction,
QDateTimeEdit, QWidget, QPlainTextEdit,
QLabel,
QLabel, QDoubleSpinBox,
)
from PyQt5.QtCore import (
QTime, QDateTime,
@@ -324,6 +324,29 @@ class ASubWindowFeatures(object):
"""
return self.find(QSpinBox, name).value()
def set_double_spin_box(self, name: str, value: int):
"""Set value of spinbox component
Args:
name: The spinbox component name
value: The new value
Returns:
Nothing
"""
self.find(QDoubleSpinBox, name).setValue(value)
def get_double_spin_box(self, name: str):
"""Get time of spin box component
Args:
name: The spin box component
Returns:
The value of spin box
"""
return self.find(QDoubleSpinBox, name).value()
def set_action_checkable(self, name: str, checked: bool):
"""Set value of action