mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
add orientation option for update KP
This commit is contained in:
1 parent
57d43cd5d3
commit
98feca7fca
5 files changed
+122
-50
No files matched your search
@@ -35,7 +35,7 @@ from PyQt5.QtWidgets import (
|
||||
QRadioButton, QComboBox, QFileDialog,
|
||||
QMessageBox, QTableView, QAction,
|
||||
QDateTimeEdit, QWidget, QPlainTextEdit,
|
||||
QLabel, QDoubleSpinBox,
|
||||
QLabel, QDoubleSpinBox, QButtonGroup,
|
||||
)
|
||||
from PyQt5.QtCore import (
|
||||
QTime, QDateTime,
|
||||
@@ -498,6 +498,17 @@ class ASubWindowFeatures(object):
|
||||
qdate = QDateTime.fromString(date.isoformat(), "yyyy-MM-ddThh:mm:ss")
|
||||
self.find(QDateTimeEdit, name).setDateTime(qdate)
|
||||
|
||||
def get_checked_id_button_group(self, name: str):
|
||||
"""Get current checked button id in a buttonGroup
|
||||
|
||||
Args:
|
||||
name: The buttonGroup component name
|
||||
|
||||
Returns:
|
||||
Current checked id
|
||||
"""
|
||||
return self.find(QButtonGroup, name).checkedId()
|
||||
|
||||
|
||||
# Top level interface
|
||||
|
||||
|
||||
Reference in new issue
Block a user