Exemplo n.º 1
0
 def notify(self, msg='', title=None, delay=5000, image=''):
     '''Displays a temporary notification message to the user. If
     title is not provided, the plugin name will be used. To have a
     blank title, pass '' for the title argument. The delay argument
     is in milliseconds.
     '''
     if not msg:
         log.warning('Empty message for notification dialog')
     if title is None:
         title = self.addon.getAddonInfo('name')
     xbmc.executebuiltin('XBMC.Notification("%s", "%s", "%s", "%s")' %
                         (msg, title, delay, image))
Exemplo n.º 2
0
 def notify(self, msg='', title=None, delay=5000, image=''):
     '''Displays a temporary notification message to the user. If
     title is not provided, the plugin name will be used. To have a
     blank title, pass '' for the title argument. The delay argument
     is in milliseconds.
     '''
     if not msg:
         log.warning('Empty message for notification dialog')
     if title is None:
         title = self.addon.getAddonInfo('name')
     xbmc.executebuiltin('XBMC.Notification("%s", "%s", "%s", "%s")' %
                         (msg, title, delay, image))
Exemplo n.º 3
0
 def set_view_mode(self, view_mode_id):
     '''Calls XBMC's Container.SetViewMode. Requires an integer
     view_mode_id'''
     xbmc.executebuiltin('Container.SetViewMode(%d)' % view_mode_id)
Exemplo n.º 4
0
 def set_view_mode(self, view_mode_id):
     '''Calls XBMC's Container.SetViewMode. Requires an integer
     view_mode_id'''
     xbmc.executebuiltin('Container.SetViewMode(%d)' % view_mode_id)