修改部分静态资源
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from PySide6.QtGui import QIcon
|
||||
from PySide6.QtGui import QIcon, QShowEvent
|
||||
from qfluentwidgets import FluentIcon, MSFluentWindow, NavigationItemPosition, MessageBox
|
||||
|
||||
from ui.pyui.about_ui import AboutWidget
|
||||
@@ -39,3 +39,10 @@ class MainWindow(MSFluentWindow):
|
||||
|
||||
def showError(self, title: str, message: str):
|
||||
MessageBox(title, message, self).exec()
|
||||
|
||||
def showEvent(self, event: QShowEvent):
|
||||
super().showEvent(event)
|
||||
if is_frozen():
|
||||
import pyi_splash
|
||||
pyi_splash.update_text('正在加载...')
|
||||
pyi_splash.close()
|
||||
|
||||
Reference in New Issue
Block a user