AssetPickerView.py 文件源码

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

项目:pythonista-scripts 作者: khilnani 项目源码 文件源码
def tableview_cell_for_row(self, tableview, section, row):
        cell = ui.TableViewCell('subtitle')
        cell.accessory_type = 'disclosure_indicator'
        if self.is_main():
            text = self.source[row]['title']
            cell.text_label.text = text
            if 'copyright' in self.source[row]:
                cell.detail_text_label.text = self.source[row]['copyright']
        else:
            cell.text_label.text = self.source[row]
            tableview.row_height = 48
            cell.image_view.image = ui.Image.named(self.source[row])
            if self.dark_cells:
                cell.image_view.background_color = 'black'
        return cell
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号