Coverage for resources/lib/Dialogs.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# -*- coding: utf-8 -*- # Module: Utils # Author: asciidisco # Created on: 24.07.2017 # License: MIT https://goo.gl/WA1kby
"""Displays localized dialogs for Kodi"""
"""Injects the utils instance
:param utils: Plugin utils :type utils: resources.lib.Utils """
""" Shows password input
:returns: string - Password characters """ self.utils.get_local_string(string_id=32004), type=xbmcgui.INPUT_ALPHANUM, option=xbmcgui.ALPHANUM_HIDE_INPUT)
""" Shows email input
:returns: string - Email characters """ self.utils.get_local_string(string_id=32005), type=xbmcgui.INPUT_ALPHANUM)
""" Shows "video not playable/available" modal
:returns: bool - Dialog shown """ addon_data.get('plugin'), self.utils.get_local_string(string_id=32009))
""" Shows login failed notification for 5 sec
:returns: bool - Notification shown """ self.utils.get_local_string(string_id=32006), self.utils.get_local_string(string_id=32007), xbmcgui.NOTIFICATION_ERROR, 5000)
""" Shows "storing credentials failed" modal
:returns: bool - Dialog shown """ self.utils.get_addon_data().get('plugin'), self.utils.get_local_string(32008)) |