xbmcgui.py 文件源码

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

项目:xbmctopython 作者: pybquillast 项目源码 文件源码
def notification(self, heading, message, icon=None, time=None, sound=None):
        """
        notification(heading, message[, icon, time, sound])--Show a Notification alert.

        heading : string - dialog heading.
        message : string - dialog message.
        icon : [opt] string - icon to use. (default xbmcgui.NOTIFICATION_INFO)
        time : [opt] integer - time in milliseconds (default 5000)
        sound : [opt] bool - play notification sound (default True)

        Builtin Icons:

        - xbmcgui.NOTIFICATION_INFO
        - xbmcgui.NOTIFICATION_WARNING
        - xbmcgui.NOTIFICATION_ERROR
        example:
        - dialog = xbmcgui.Dialog()
        - dialog.notification('Movie Trailers', 'Finding Nemo download finished.', xbmcgui.NOTIFICATION_INFO, 5000)
        """
        root = self.root
        tkMessageBox.showinfo('Notification', message, parent=root)
        root.destroy()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号