本文整理汇总了Python中xbmcgui.WindowXML方法的典型用法代码示例。如果您正苦于以下问题:Python xbmcgui.WindowXML方法的具体用法?Python xbmcgui.WindowXML怎么用?Python xbmcgui.WindowXML使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xbmcgui
的用法示例。
在下文中一共展示了xbmcgui.WindowXML方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import xbmcgui [as 别名]
# 或者: from xbmcgui import WindowXML [as 别名]
def __init__(self, *args, **kwargs):
xbmcgui.WindowXML.__init__( self )
self.win = xbmcgui.Window(10000)
self.nextlist = kwargs['listing']
self.setLabels = kwargs['setLabels']
self.niceDate = kwargs['niceDate']
self.scanDays = kwargs['scanDays']
self.todayStyle = kwargs['todayStyle']
self.wantYesterday = kwargs['wantYesterday']
# We allow today + 2 weeks worth of "upcoming" days.
if self.scanDays > 15:
self.scanDays = 15
if self.todayStyle:
if self.wantYesterday:
self.scanDays += 1
self.cntr_cnt = self.scanDays
else:
self.cntr_cnt = 7
self.wantYesterday = False
示例2: __init__
# 需要导入模块: import xbmcgui [as 别名]
# 或者: from xbmcgui import WindowXML [as 别名]
def __init__(self, *args, **kwargs):
xbmc.log("PostPlayInfo -> init called",level=xbmc.LOGNOTICE)
if OS_MACHINE[0:5] == 'armv7':
xbmcgui.WindowXML.__init__(self)
else:
xbmcgui.WindowXML.__init__(self, *args, **kwargs)
xbmc.log("PostPlayInfo -> init called 2",level=xbmc.LOGNOTICE)
self._winID = None
self.action_exitkeys_id = [10, 13]
self.item = None
self.previousitem = None
self.upnextlist = []
self.cancel = False
self.autoplayed = False
self.playAutomatically = True
self.previous = None
self.timeout = None
self.showStillWatching = False
self.addonSettings = xbmcaddon.Addon(id='service.nextup.notification')
xbmc.log("PostPlayInfo -> init completed",level=xbmc.LOGNOTICE)
示例3: getControlById
# 需要导入模块: import xbmcgui [as 别名]
# 或者: from xbmcgui import WindowXML [as 别名]
def getControlById(self, controlId):
try:
control = self.getControl(controlId)
except Exception as exc:
#HACK there seems to be a problem with recognizing the scrollbar controls
if controlId not in (CONTROL_SCROLLBARS):
Logutil.log("Control with id: %s could not be found. Check WindowXML file. Error: %s" % (
str(controlId), str(exc)), util.LOG_LEVEL_ERROR)
self.writeMsg(util.localize(32025) % str(controlId))
return None
return control
示例4: __init__
# 需要导入模块: import xbmcgui [as 别名]
# 或者: from xbmcgui import WindowXML [as 别名]
def __init__( self, *args, **kwargs):
self.session = None
self.oldWindow = None
self.busyCount = 0
xbmcgui.WindowXML.__init__( self )
示例5: close
# 需要导入模块: import xbmcgui [as 别名]
# 或者: from xbmcgui import WindowXML [as 别名]
def close(self):
xbmcgui.WindowXML.close(self)
self.isCanceled = True
示例6: setProperty
# 需要导入模块: import xbmcgui [as 别名]
# 或者: from xbmcgui import WindowXML [as 别名]
def setProperty(self, key, value):
if not self._winID:
self._winID = xbmcgui.getCurrentWindowId()
try:
xbmcgui.Window(self._winID).setProperty(key, value)
xbmcgui.WindowXML.setProperty(self, key, value)
except:
pass