ui.py 文件源码

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

项目:youtube_watcher 作者: Sjc1000 项目源码 文件源码
def video_options(self, item, position):
        if position == self.pos:
            return curses.color_pair(1)

        options = 0
        options |= curses.A_DIM if item['seen'] else 0
        options |= curses.color_pair(3) if item.get('fav') else 0

        if item['title'] in self.data:
            info = self.data[item['title']]
            options |= curses.A_UNDERLINE if info.get('watch') else 0

        if any(item['title'] == i['title'] for i in self.selected):
            options |= curses.A_REVERSE
        return options
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号