def METHOD_NAME(self):
    """添加分类"""
    if not os.path.exists(self.__imageListMgr.filePath):
        QtWidgets.QMessageBox.information(self.__parent, "提示",
                                          "请先打开正确的图像库")
        return
    dlg = QtWidgets.QDialog(parent=self.parent)
    ui = ui_addclassifydialog.Ui_AddClassifyDialog()
    ui.setupUi(dlg)
    result = dlg.exec_()
    txt = ui.lineEdit.text()
    if result == QtWidgets.QDialog.Accepted:
        mgr_result = self.__imageListMgr.METHOD_NAME(txt)
        if not mgr_result:
            QtWidgets.QMessageBox.warning(self.parent, "添加分类", "添加分类错误")
        else:
            self.setClassifyList(self.__imageListMgr.classifyList)