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()
评论列表
文章目录