def notify(addon_id, typeq, title, message, times, line2='', line3=''): import xbmc addon_tmp = Addon(addon_id) if title == '' : title='[B]' + addon_tmp.get_name() + '[/B]' if typeq == 'small': if times == '': times='5000' smallicon= notify_icon xbmc.executebuiltin("XBMC.Notification("+title+","+message+","+times+","+smallicon+")") elif typeq == 'big': dialog = xbmcgui.Dialog() dialog.ok(' '+title+' ', ' '+message+' ', line2, line3) else: dialog = xbmcgui.Dialog() dialog.ok(' '+title+' ', ' '+message+' ')
def notify(addon_id, typeq, title, message, times, line2='', line3=''): import xbmc addon_tmp = Addon(addon_id) if title == '': title = '[B]' + addon_tmp.get_name() + '[/B]' if typeq == 'small': if times == '': times = '5000' smallicon = notify_icon xbmc.executebuiltin("XBMC.Notification(" + title + "," + message + "," + times + "," + smallicon + ")") elif typeq == 'big': dialog = xbmcgui.Dialog() dialog.ok(' ' + title + ' ', ' ' + message + ' ', line2, line3) else: dialog = xbmcgui.Dialog() dialog.ok(' ' + title + ' ', ' ' + message + ' ')