Three-Column-Sortable-TableView.py 文件源码

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

项目:pythonista-scripts 作者: khilnani 项目源码 文件源码
def make_labels(self, cell, text, pos):
        label = ui.Label()
        label.border_color = 'lightgrey'
        label.border_width = 0.5
        if pos == 2:
            label.text = str(datetime.datetime.fromtimestamp(text))
        else:
            label.text = str(text)
        label.frame = (pos*self.width/3,0,self.width/3,self.row_height)
        label.alignment = ui.ALIGN_CENTER
        cell.content_view.add_subview(label)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号