utils.py 文件源码

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

项目:plugin.video.bdyun 作者: caasiu 项目源码 文件源码
def showNotification(title,message, time=4000):
    """Show Notification

    Args: 
        title: has to be unicode
        message: has to be unicode
        time: Time that the message is beeing displayed
    """
    __addoniconpath__ = os.path.join(addon_dir(),"icon.png")
    log(u'Notification. %s: %s' % (title, message) )
    xbmc.executebuiltin(encode('Notification("' + title + '","' + message + '",'+(str(time)).decode('utf-8')+',"' + __addoniconpath__ + '")'))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号