def check_null(self):
"""
check the required options
:return:
"""
is_none = False
type_info = ''
case_name = self.case_name_line_edit.text().strip()
content = self.editor_text_edit.toPlainText().strip()
if not case_name:
is_none = True
type_info += "Case Name"
if not content:
is_none = True
if not type_info:
type_info += "Content"
else:
type_info += ", Content"
if is_none:
self.message_box.warning(self, "Message", type_info + " is required.", QMessageBox.Ok)
return is_none
评论列表
文章目录