import xbmc
import xbmcgui
import xbmcaddon


class AIGuideDialog(xbmcgui.WindowXMLDialog):
    """Jednotný dialog s návodem pro získání AI API klíče (provider-agnostic)."""

    def __init__(self, xmlFilename, addonPath, skin="Default", theme="Default"):
        super(AIGuideDialog, self).__init__()
        self.addon = xbmcaddon.Addon()

    def onInit(self):
        pass

    def onClick(self, controlID):
        if controlID == 6000:
            self.close()

    def onAction(self, action):
        action_id = action.getId()
        if action_id == xbmcgui.ACTION_NAV_BACK or action_id == xbmcgui.ACTION_PREVIOUS_MENU:
            self.close()
        elif action_id in [xbmcgui.ACTION_MOVE_UP, xbmcgui.ACTION_MOVE_DOWN]:
            pass


