tableobjectview.py 文件源码

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

项目:pythonista-scripts 作者: khilnani 项目源码 文件源码
def tableview_cell_for_row(self, tableview, section, row):
        cell = ui.TableViewCell('subtitle')
        if section == 0:
            nullable = self.tinfo[row][3] == 1
            cell.text_label.text = self.tinfo[row][1]
            fmt = 'Type: {} Nullable: {} Default: {}'
            cell.detail_text_label.text = fmt.format(self.tinfo[row][2], nullable, self.tinfo[row][4])
        elif section == 1:
            cell.text_label.text = self.iinfo[row][1]
        cell.selectable = False
        return cell
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号