ShowTableView.py 文件源码

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

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


问题


面经


文章

微信
公众号

扫码关注公众号