修改部分静态资源
This commit is contained in:
BIN
images/logo.png
BIN
images/logo.png
Binary file not shown.
|
Before Width: | Height: | Size: 206 KiB After Width: | Height: | Size: 210 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 432 KiB After Width: | Height: | Size: 303 KiB |
16
main.py
16
main.py
@@ -1,20 +1,18 @@
|
|||||||
import sys
|
import sys
|
||||||
|
import module.resources
|
||||||
|
|
||||||
from PySide6.QtWidgets import QApplication
|
from PySide6.QtWidgets import QApplication
|
||||||
|
|
||||||
from ui.main import MainWindow
|
from ui.main import MainWindow
|
||||||
import module.resources
|
from utils.function import is_frozen
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app = QApplication(sys.argv)
|
if is_frozen():
|
||||||
window = MainWindow()
|
|
||||||
try:
|
|
||||||
import pyi_splash
|
import pyi_splash
|
||||||
|
|
||||||
pyi_splash.close()
|
pyi_splash.update_text('正在启动...')
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
finally:
|
|
||||||
window.show()
|
|
||||||
|
|
||||||
|
app = QApplication(sys.argv)
|
||||||
|
window = MainWindow()
|
||||||
|
window.show()
|
||||||
sys.exit(app.exec())
|
sys.exit(app.exec())
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ splash = Splash(
|
|||||||
'images\\splash.png',
|
'images\\splash.png',
|
||||||
binaries=a.binaries,
|
binaries=a.binaries,
|
||||||
datas=a.datas,
|
datas=a.datas,
|
||||||
text_pos=(5,378),
|
text_pos=(35,378),
|
||||||
text_size=12,
|
text_size=12,
|
||||||
text_color='black',
|
text_color='black',
|
||||||
minify_script=True,
|
minify_script=True,
|
||||||
|
|||||||
26633
module/resources.py
26633
module/resources.py
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
|||||||
from PySide6.QtGui import QIcon
|
from PySide6.QtGui import QIcon, QShowEvent
|
||||||
from qfluentwidgets import FluentIcon, MSFluentWindow, NavigationItemPosition, MessageBox
|
from qfluentwidgets import FluentIcon, MSFluentWindow, NavigationItemPosition, MessageBox
|
||||||
|
|
||||||
from ui.pyui.about_ui import AboutWidget
|
from ui.pyui.about_ui import AboutWidget
|
||||||
@@ -39,3 +39,10 @@ class MainWindow(MSFluentWindow):
|
|||||||
|
|
||||||
def showError(self, title: str, message: str):
|
def showError(self, title: str, message: str):
|
||||||
MessageBox(title, message, self).exec()
|
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