本文整理汇总了Python中xbmcgui.ACTION_NAV_BACK属性的典型用法代码示例。如果您正苦于以下问题:Python xbmcgui.ACTION_NAV_BACK属性的具体用法?Python xbmcgui.ACTION_NAV_BACK怎么用?Python xbmcgui.ACTION_NAV_BACK使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类xbmcgui
的用法示例。
在下文中一共展示了xbmcgui.ACTION_NAV_BACK属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: onAction
# 需要导入模块: import xbmcgui [as 别名]
# 或者: from xbmcgui import ACTION_NAV_BACK [as 别名]
def onAction(self, action):
if action.getId() in (xbmcgui.ACTION_NAV_BACK, xbmcgui.ACTION_PREVIOUS_MENU):
self.selected = None
self.close()
示例2: onAction
# 需要导入模块: import xbmcgui [as 别名]
# 或者: from xbmcgui import ACTION_NAV_BACK [as 别名]
def onAction(self, action):
if action.getId() in (xbmcgui.ACTION_NAV_BACK, xbmcgui.ACTION_PREVIOUS_MENU):
self.selected = self.originalselected
self.close()
示例3: onAction
# 需要导入模块: import xbmcgui [as 别名]
# 或者: from xbmcgui import ACTION_NAV_BACK [as 别名]
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()
示例4: onAction
# 需要导入模块: import xbmcgui [as 别名]
# 或者: from xbmcgui import ACTION_NAV_BACK [as 别名]
def onAction(self, action):
# self.close()
if action in [xbmcgui.ACTION_PREVIOUS_MENU, xbmcgui.ACTION_NAV_BACK]:
self.close()
示例5: __init__
# 需要导入模块: import xbmcgui [as 别名]
# 或者: from xbmcgui import ACTION_NAV_BACK [as 别名]
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()
示例6: onAction
# 需要导入模块: import xbmcgui [as 别名]
# 或者: from xbmcgui import ACTION_NAV_BACK [as 别名]
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)
示例7: onAction
# 需要导入模块: import xbmcgui [as 别名]
# 或者: from xbmcgui import ACTION_NAV_BACK [as 别名]
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()