修复了主菜单中样本ID显示错误的问题
禁用了根目录路径的手动输入
This commit is contained in:
@ -277,9 +277,11 @@ class MainWindow(QMainWindow, Ui_Signal_Label):
|
||||
def seek_sampID(self, path):
|
||||
if not Path(path).exists():
|
||||
PublicFunc.msgbox_output(self, Constants.MAINWINDOW_ROOT_PATH_NOT_EXIST, Constants.MSGBOX_TYPE_ERROR)
|
||||
self.ui.comboBox_sampID.clear()
|
||||
return
|
||||
|
||||
sub_folders = [item.name for item in Path(path).iterdir() if item.is_dir()]
|
||||
self.ui.comboBox_sampID.clear()
|
||||
self.ui.comboBox_sampID.addItems(sub_folders)
|
||||
|
||||
def check_root_path(self):
|
||||
|
||||
@ -50,6 +50,7 @@ class Ui_Signal_Label(object):
|
||||
|
||||
self.plainTextEdit_root_path = QPlainTextEdit(self.centralwidget)
|
||||
self.plainTextEdit_root_path.setObjectName(u"plainTextEdit_root_path")
|
||||
self.plainTextEdit_root_path.setEnabled(False)
|
||||
|
||||
self.verticalLayout_3.addWidget(self.plainTextEdit_root_path)
|
||||
|
||||
|
||||
@ -40,7 +40,11 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPlainTextEdit" name="plainTextEdit_root_path"/>
|
||||
<widget class="QPlainTextEdit" name="plainTextEdit_root_path">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
|
||||
Reference in New Issue
Block a user