case_editor.py 文件源码

python
阅读 33 收藏 0 点赞 0 评论 0

项目:uitester 作者: IfengAutomation 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号