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