DialerFrame.py 文件源码

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

项目:fmc-dialer 作者: sguron 项目源码 文件源码
def onPhoneNumberChange(self):
        if self.just_coutry_selected:
            self.just_coutry_selected = False
            return

        if not self.wxapp.phonenum:
            return

        cIndex = findCountry(self.wxapp.phonenum[:6])

        if cIndex != -1:
            self.country_box.SetSelection(cIndex)
            self.wxapp.phonecountry = countries[cIndex]
            self.dialnumber.UpdateLabel("+%s" % self.wxapp.phonenum)
        else:
            self.country_box.SetSelection(wx.NOT_FOUND)
            self.wxapp.phonecountry = ('', 'null', '', '')
            self.dialnumber.UpdateLabel("%s" % self.wxapp.phonenum)

        return
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号