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
评论列表
文章目录