app.py 文件源码

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

项目:toot 作者: ihabunek 项目源码 文件源码
def draw_status_row(self, window, status, offset, highlight=False):
        width = window.getmaxyx()[1]
        color = Color.blue() if highlight else 0

        date, time = status['created_at']
        window.addstr(offset + 2, 2, date, color)
        window.addstr(offset + 3, 2, time, color)

        window.addstr(offset + 2, 15, status['account']['acct'], color)
        window.addstr(offset + 3, 15, status['account']['display_name'], color)

        window.addstr(offset + 4, 1, '?' * (width - 2))

        window.refresh(0, 0, 2, 0, curses.LINES - 4, self.left_width)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号