user_operations.py 文件源码

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

项目:smartschool 作者: asifkodur 项目源码 文件源码
def validate_pass(self):

        if not self.UO.Login_Check(self.combo_box_1.Value,self.text_ctrl_1.Value):
            return False

        if len(self.text_ctrl_2.Value)<5:
            dlg = wx.MessageDialog(self, 'Password must be of at least five characters', '',wx.OK | wx.ICON_ERROR)                  
            dlg.ShowModal()
            dlg.Destroy()
            return False
        if self.text_ctrl_2.Value!=self.text_ctrl_3.Value:
            dlg = wx.MessageDialog(self, 'Passwords do not match', '',wx.OK | wx.ICON_ERROR)                  
            dlg.ShowModal()
            dlg.Destroy()
            return False

        return True
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号