import xbmc
import xbmcgui
import xbmcaddon


class RemoteGuideDialog(xbmcgui.WindowXMLDialog):
    """Jednotný dialog s návodem pro nastavení dálkového ovládání."""

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


