import xbmc
import xbmcgui
import xbmcaddon


class KraskaGuideDialog(xbmcgui.WindowXMLDialog):
    """Jednotný dialog s návodem pro KRA.sk registraci."""

    def __init__(self, xmlFilename, addonPath, skin="Default", theme="Default"):
        super(KraskaGuideDialog, 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
