优化了部分代码结构;
修改了复选框的样式
This commit is contained in:
4
run.py
4
run.py
@ -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'
|
||||
|
||||
Reference in New Issue
Block a user