def validate_mobile(self):
self.SENDING_LIST=[]
V=validate()
sending_numbers=self.text_ctrl_selected_contacts.Value
sending_numbers=sending_numbers.split(";")
for mobile in sending_numbers:
if not mobile:
continue
if V.validate_mobile(mobile)[0]:
self.SENDING_LIST.append(mobile)
else:
msg=mobile+" is invalid mobile number. Either edit it or delete to continue!"
dlg = wx.MessageDialog(self, msg, 'Error',wx.OK | wx.ICON_ERROR)
dlg.ShowModal()
dlg.Destroy()
return 0
return True
评论列表
文章目录