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