Top Songs.py 文件源码

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

项目:pythonista-scripts 作者: lukaskollmer 项目源码 文件源码
def tableView_accessoryButtonTappedForRowWithIndexPath_(_self, _cmd, _tv, _ip):
    view = ObjCInstance(_self)
    row = ObjCInstance(_ip).row()

    cell = ObjCInstance(tableView_cellForRowAtIndexPath_(_self, None, _tv, _ip))

    accessory_view = ObjCInstance(cell.valueForKey_('_accessoryView'))

    song = songs[row]
    song_info_view = ui.load_view('SongInfo')
    ObjCInstance(song_info_view['artworkImageView']).setImage_(song.artwork)
    song_info_view['song_title_label'].text = str(song.title)
    song_info_view['song_album_label'].text = str(song.albumTitle)
    song_info_view['song_playcount_label'].text = str(song.playCount)

    song_info_view.present('popover')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号