refactor(step5_5): 公式内置化,界面精简

This commit is contained in:
DXC
2026-05-10 18:38:45 +08:00
parent 2a4a7ec7be
commit 2c52ca19c5
2 changed files with 90 additions and 322 deletions

View File

@ -140,4 +140,9 @@ class FileSelectWidget(QWidget):
def set_path(self, path):
"""设置路径"""
self.line_edit.setText(str(path))
self.line_edit.setText(str(path))
def set_read_only(self, read_only=True):
"""设置文件选择框为只读,并禁用浏览按钮。"""
self.line_edit.setReadOnly(read_only)
self.browse_btn.setEnabled(not read_only)