This commit is contained in:
2025-05-08 23:57:22 +08:00
parent 24acc2a6f1
commit 7094a5886a
18 changed files with 442 additions and 583 deletions

View File

@@ -51,6 +51,9 @@ except ImportError:
HAS_QT = False
print("警告: 无法导入Qt模块UI功能将不可用")
import config
TOOL_NAME = config.TOOL_NAME
#===================================== 公共函数 =====================================
def clean_pycache(root_dir):
"""
@@ -411,7 +414,7 @@ class ModuleReloaderUI(QtWidgets.QDialog):
parent = parent or getMayaMainWindow()
super(ModuleReloaderUI, self).__init__(parent)
self.setWindowTitle(f"{TOOL_NAME} - 模块重载工具")
self.setWindowTitle("模块重载工具")
self.setMinimumWidth(600)
self.setMinimumHeight(500)
self.setWindowFlags(self.windowFlags() | QtCore.Qt.WindowStaysOnTopHint)
@@ -427,7 +430,7 @@ class ModuleReloaderUI(QtWidgets.QDialog):
main_layout.setSpacing(10)
# 标题标签
title_label = QtWidgets.QLabel(f"{TOOL_NAME} 模块重载工具")
title_label = QtWidgets.QLabel("模块重载工具")
title_label.setStyleSheet("font-size: 16px; font-weight: bold;")
main_layout.addWidget(title_label)