refactor(step5_5): 公式内置化,界面精简
This commit is contained in:
@ -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)
|
||||
Reference in New Issue
Block a user