增加打开的数据集文件夹的功能,且移动原文件夹会提示,代码格式规范
This commit is contained in:
parent
22d3ead42d
commit
648a43fdcc
|
@ -1460,12 +1460,11 @@ class MainWindow(QMainWindow, WindowMixin):
|
|||
defaultOpenDirPath = self.lastOpenDir
|
||||
else:
|
||||
if self.lang == 'ch':
|
||||
self.actions.open_dataset_dir.setEnabled(False)
|
||||
self.msgBox.warning(self, "提示", "\n 原文件夹已不存在,请从新选择数据集路径!")
|
||||
defaultOpenDirPath = os.path.dirname(self.filePath) if self.filePath else '.'
|
||||
else:
|
||||
self.actions.open_dataset_dir.setEnabled (False)
|
||||
self.msgBox.warning (self, "Warn", "\n The original folder no longer exists, please choose the data set path again!")
|
||||
|
||||
self.actions.open_dataset_dir.setEnabled(False)
|
||||
defaultOpenDirPath = os.path.dirname(self.filePath) if self.filePath else '.'
|
||||
|
||||
def importDirImages(self, dirpath, isDelete = False):
|
||||
|
|
Loading…
Reference in New Issue