sms_win.py 文件源码

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

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


问题


面经


文章

微信
公众号

扫码关注公众号