def bt_picture_action(self, sender):
lst = ui.ListDataSource([{'title':'none','accessory_type':'none'},
{'title':'checkmark','accessory_type':'checkmark'},
{'title':'detail_button','accessory_type':'detail_button'},
{'title':'detail_disclosure_button','accessory_type':'detail_disclosure_button'},
{'title':'disclosure_indicator','accessory_type':'disclosure_indicator'},
{'title':'image24 and checkmark','image':'ionicons-images-24','accessory_type':'checkmark'},
{'title':'image32','image':'ionicons-alert-32'},
{'title':'image256','image':'ionicons-alert-circled-256'},
{'title':'frog','image':'Frog_Face'},
{'title':'OwnImage','image':'Image/OwnImage.png'}])
tv1 = self.view['tableview1']
tv1.data_source = tv1.delegate = lst
tv1.data_source.delete_enabled = tv1.editing = False
lst.action = self.tv1_action
tv1.reload_data()
评论列表
文章目录