增加了 系统诊断弹窗以及 管片任务的详情按钮弹窗
This commit is contained in:
@ -1,14 +1,19 @@
|
||||
from PySide6.QtWidgets import (QWidget, QVBoxLayout, QHBoxLayout, QLabel,
|
||||
QPushButton, QMessageBox, QApplication)
|
||||
from PySide6.QtCore import Qt
|
||||
from PySide6.QtCore import Qt, Signal
|
||||
from PySide6.QtGui import QPainter, QPixmap, QFont
|
||||
import sys
|
||||
|
||||
import resources.resources_rc
|
||||
from utils.image_paths import ImagePaths
|
||||
|
||||
# 任务控件,如:管片任务、派单任务
|
||||
"""
|
||||
任务控件,如:管片任务、派单任务
|
||||
"""
|
||||
class TaskWidget(QWidget):
|
||||
# 任务详情信号: task1表示第一条任务
|
||||
task_details_signal = Signal(str)
|
||||
|
||||
def __init__(self, taskTitle:str, parent=None):
|
||||
super().__init__(parent)
|
||||
# 设置Widget大小与背景图一致
|
||||
@ -153,8 +158,12 @@ class TaskWidget(QWidget):
|
||||
|
||||
def _show_detail_dialog(self, task_name):
|
||||
"""显示任务详情弹窗"""
|
||||
QMessageBox.information(self, "任务详情", f"任务 {task_name} 的详细信息...")
|
||||
|
||||
# QMessageBox.information(self, "任务详情", f"任务 {task_name} 的详细信息...")
|
||||
"""
|
||||
task1 表示第一条任务, 依次类推
|
||||
"""
|
||||
# 发送任务详情信号
|
||||
self.task_details_signal.emit(task_name)
|
||||
|
||||
# --------------------------
|
||||
# 对外接口:修改任务属性
|
||||
|
||||
Reference in New Issue
Block a user