def OnPopupEdit(self, event):
pos = self.listCtrl.GetItemData(self.currentItem)
sms = self.itemDataMap[pos][COL_SMS]
p = SMSEditEntry(self, sms)
if p.ShowModal() == wx.ID_OK:
sms = p.getSMS()
try:
self.SIM.gotoFile(SMS_FILE_PATH)
if not self.SIM.checkAndVerifyCHV1(CHV_UPDATE):
raise "Access conditions not met."
self.writeSMSEntry(pos, sms)
self.itemDataMap[pos] = (sms.status, sms.timestamp, sms.number, sms.message, sms)
self.UpdateView()
except:
pySIMmessage(self, "Unable to save SMS message.", "SIM card error")
p.Destroy()
评论列表
文章目录