mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Meshing: Add minimal meshing option dialog.
This commit is contained in:
1 parent
34038d2844
commit
ab276db78c
5 files changed
+274
-7
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user