本文整理匯總了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()