添加了 消息列表弹窗(系统状态消息、预警消息),以及存储消息的数据库
This commit is contained in:
@ -26,6 +26,9 @@ from .widgets.dispatch_details_dialog import DispatchDetailsDialog
|
||||
|
||||
|
||||
class MainWindow(QWidget):
|
||||
# 定义“即将关闭”的信号
|
||||
about_to_close = Signal()
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.initWindow()
|
||||
@ -329,6 +332,7 @@ class MainWindow(QWidget):
|
||||
|
||||
def closeEvent(self, e):
|
||||
"""窗口关闭时的回调"""
|
||||
self.about_to_close.emit()
|
||||
super().closeEvent(e)
|
||||
|
||||
def keyPressEvent(self, event):
|
||||
|
||||
Reference in New Issue
Block a user