def on_button_email_passwd(self,event):# Button save email and password
email=self.text_ctrl_email.Value
passwd=self.text_ctrl_email_passwd.Value
if not self.V.validate_email(email)[0]:
msg="Invalid Email"
dlg = wx.MessageDialog(self, msg, 'Error',wx.OK | wx.ICON_ERROR)
dlg.ShowModal()
dlg.Destroy()
return 0
self.DB.Set_SMS_Sender_Mail(email)
self.DB.Set_SMS_Sender_Mail_Password(passwd)
msg="Successfully Saved"
dlg = wx.MessageDialog(self, msg, 'Success',wx.OK | wx.ICON_INFORMATION)
dlg.ShowModal()
dlg.Destroy()
评论列表
文章目录