ui.py 文件源码

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

项目:youtube_watcher 作者: Sjc1000 项目源码 文件源码
def draw_items(self):
        for y, i in enumerate(self.items[self.off:self.off+self.height-4]):
            if y == self.pos:
                options = curses.A_REVERSE
            else:
                options = 0
            if all(x['seen'] for x in self.data[i]['videos']):
                options |= curses.A_DIM
            title = ' {} '.format(i).ljust(self.width)
            self.screen.addstr(y+3, 0, title, options)
        return None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号