Update
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user