优化了部分代码结构;

修改了复选框的样式
This commit is contained in:
Yorusora
2025-06-11 11:09:48 +08:00
parent 3c60f769ca
commit 8010d7c250
7 changed files with 53 additions and 66 deletions

4
run.py
View File

@ -1,3 +1,4 @@
from importlib.util import find_spec
from logging import getLogger, NOTSET, FileHandler, Formatter, StreamHandler, info
from os import environ
from pathlib import Path
@ -6,7 +7,6 @@ from time import strftime, localtime, time
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QApplication
from func.Module_mainwindow import MainWindow
import importlib.util
if __name__ == '__main__':
# 设置日志
@ -28,7 +28,7 @@ if __name__ == '__main__':
info("程序启动")
# 解决 Could not find the Qt platform plugin "windows"
spec = importlib.util.find_spec("PySide6")
spec = find_spec("PySide6")
if spec and spec.origin:
dirname = Path(spec.origin).parent
plugin_path = dirname / 'plugins' / 'platforms'