connected.py 文件源码

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

项目:SnapchatClone 作者: FOC96 项目源码 文件源码
def checkSnapInbox(self):
        try:
            print("Looking for snaps...")
            a = Snap()
            namesFound = a.getImageName(localFiles.getLocalUserInfo()[0])[0]
            idsFound = a.getImageName(localFiles.getLocalUserInfo()[0])[1]

            if len(namesFound) == 0:
                popup = Popup(title='Oops!', content=Label(text='There are no new snaps for you, '+localFiles.getLocalUserInfo()[2].split(" ")[0]), size_hint=(None, None), size=(350, 200))
                popup.open()
            else:
                for x in range(len(namesFound)):
                    img = str(namesFound[x]).strip()
                    ImageFunctions.showImg(img)
                a.updateSnapStatus(localFiles.getLocalUserInfo()[0])
        except:
            print("ERROR")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号