pySIMsms.py 文件源码

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

项目:SIMreader 作者: stoic1979 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号