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__ + '")'))
评论列表
文章目录