完成了<BCG的质量标注>的代码重构
This commit is contained in:
@ -609,7 +609,7 @@ class MainWindow_SA_label(QMainWindow):
|
||||
item = QTableWidgetItem(str(correct_End))
|
||||
self.ui.tableWidget_label_add.setItem(index, 3, item)
|
||||
remark = row.get("remark", None)
|
||||
if str(remark) != "" and str(remark) != "nan" and row.get("isLabeled", None) == 1:
|
||||
if str(remark) != Constants.STRING_IS_EMPTY and str(remark) != Constants.STRING_IS_NAN and row.get("isLabeled", None) == 1:
|
||||
for col in range(self.ui.tableWidget_label_add.columnCount()):
|
||||
item = self.ui.tableWidget_label_add.item(index, col)
|
||||
item.setBackground(QColor(255, 200, 200))
|
||||
|
||||
Reference in New Issue
Block a user