fm.py 文件源码

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

项目:doubanfm-py 作者: nekocode 项目源码 文件源码
def __init__(self, song, on_pressed_callback, index=0):
        super(SongButton, self).__init__('', on_pressed_callback)
        self.index = index
        self.song = song
        self.is_playing = False

        self._text = urwid.SelectableIcon(
            u'• %s - %s' % (song.title, song.artist),
            cursor_position=0)
        self._w = urwid.AttrMap(self._text, None, focus_map='reversed')
        self.set_is_playing(self.is_playing)

    # ????????
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号