plugin.py 文件源码

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

项目:enigma2 作者: OpenLD 项目源码 文件源码
def mountpoint_choosen(option):
    if option is None:
        return

    from Screens.ChoiceBox import ChoiceBox

    print "scanning", option
    (description, mountpoint, session) = option
    res = scanDevice(mountpoint)

    list = [ (r.description, r, res[r], session) for r in res ]

    if not list:
        from Screens.MessageBox import MessageBox
        if os.access(mountpoint, os.F_OK|os.R_OK):
            session.open(MessageBox, _("No displayable files on this medium found!"), MessageBox.TYPE_INFO, simple = True, timeout = 5)
        else:
            print "ignore", mountpoint, "because its not accessible"
        return

    session.openWithCallback(execute, ChoiceBox,
        title = _("The following files were found..."),
        list = list)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号