testimonies.py 文件源码

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

项目:kivy_gosh 作者: mcroni 项目源码 文件源码
def read(self,*largs):
        content = FloatLayout()
        scroll = ScrollView()
        mdlist = MDList()
        content.add_widget(scroll)
        scroll.add_widget(mdlist)
        title = "Testimonies"
        pop = Popup(title= title,content= content,)
        pop.open()
        try:
            for message in Testify.select():
                time.sleep(0.50)
                mdlist.add_widget(PopList(text=str(message.name),secondary_text=str(message.message)))
            print('reading testimonies')
        except peewee.OperationalError:
            self.login_failure('Check Network Connection')
            # mdlist.add_widget(PopList(text=str('Error'), secondary_text=str('Please Check Internet Connection')))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号