Python xbmcgui.ACTION_NAV_BACK Examples

The following are 10 code examples of xbmcgui.ACTION_NAV_BACK(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module xbmcgui , or try the search function .
Example #1
Source File: artworkselection.py    From script.artwork.beef with MIT License 5 votes vote down vote up
def onAction(self, action):
        if action.getId() in (xbmcgui.ACTION_NAV_BACK, xbmcgui.ACTION_PREVIOUS_MENU):
            self.selected = None
            self.close() 
Example #2
Source File: seriesselection.py    From script.artwork.beef with MIT License 5 votes vote down vote up
def onAction(self, action):
        if action.getId() in (xbmcgui.ACTION_NAV_BACK, xbmcgui.ACTION_PREVIOUS_MENU):
            self.selected = self.originalselected
            self.close() 
Example #3
Source File: keymaptools.py    From addon with GNU General Public License v3.0 5 votes vote down vote up
def onAction(self, action):
        # exit
        if action.getId() in [xbmcgui.ACTION_PREVIOUS_MENU, xbmcgui.ACTION_NAV_BACK]:
            # main.close()
            xbmc.executebuiltin('Dialog.Close(all,true)')

        if action.getId() == xbmcgui.ACTION_CONTEXT_MENU:
            config.open_settings() 
Example #4
Source File: help.py    From addon with GNU General Public License v3.0 5 votes vote down vote up
def onAction(self, action):
            # self.close()
            if action in [xbmcgui.ACTION_PREVIOUS_MENU, xbmcgui.ACTION_NAV_BACK]:
                self.close() 
Example #5
Source File: nextep.py    From addon with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self, *args, **kwargs):
        logger.info()
        self.action_exitkeys_id = [xbmcgui.ACTION_STOP, xbmcgui.ACTION_BACKSPACE, xbmcgui.ACTION_PREVIOUS_MENU,
                                   xbmcgui.ACTION_NAV_BACK]
        self.progress_control = None
        self.set_info() 
Example #6
Source File: dialog.py    From script.module.clouddrive.common with GNU General Public License v3.0 5 votes vote down vote up
def onAction(self, action):
        if action.getId() == xbmcgui.ACTION_PREVIOUS_MENU or action.getId() == xbmcgui.ACTION_NAV_BACK:
            self.canceled = True
        super(QRDialogProgress, self).onAction(action) 
Example #7
Source File: dialog.py    From script.module.clouddrive.common with GNU General Public License v3.0 5 votes vote down vote up
def onAction(self, action):
        
        if action.getId() == xbmcgui.ACTION_PREVIOUS_MENU or action.getId() == xbmcgui.ACTION_NAV_BACK:
            self.canceled = True
        super(ExportScheduleDialog, self).onAction(action) 
Example #8
Source File: dialog.py    From script.module.clouddrive.common with GNU General Public License v3.0 5 votes vote down vote up
def onAction(self, action):
        
        if action.getId() == xbmcgui.ACTION_PREVIOUS_MENU or action.getId() == xbmcgui.ACTION_NAV_BACK:
            self.canceled = True
        elif action.getId() == xbmcgui.ACTION_CONTEXT_MENU:
            if self.getFocusId() == self.schedule_list.getId():
                index = self._dialog.contextmenu(['Edit...', 'Delete'])
                if index == 0:
                    self.edit_selected_schedule()
                elif index == 1:
                    self.delete_selected_schedule()
        super(ExportMainDialog, self).onAction(action) 
Example #9
Source File: ayuda.py    From pelisalacarta-ce with GNU General Public License v3.0 5 votes vote down vote up
def onAction(self, action):
            # self.close()
            if action in [xbmcgui.ACTION_PREVIOUS_MENU, xbmcgui.ACTION_NAV_BACK]:
                self.close() 
Example #10
Source File: PostPlayInfo.py    From service.nextup.notification with GNU General Public License v2.0 5 votes vote down vote up
def onAction(self, action):

        self.cancelTimer()
        if action in (xbmcgui.ACTION_PREVIOUS_MENU, xbmcgui.ACTION_NAV_BACK):
            xbmc.log("PostPlayInfo ->  closing ",level=xbmc.LOGNOTICE)
            self.close()