当前位置: 首页>>代码示例>>Python>>正文


Python xbmcgui.WindowXML方法代码示例

本文整理汇总了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 
开发者ID:WayneD,项目名称:script.tv.show.next.aired,代码行数:21,代码来源:next_aired_dialog.py

示例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) 
开发者ID:im85288,项目名称:service.nextup.notification,代码行数:26,代码来源:PostPlayInfo.py

示例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 
开发者ID:maloep,项目名称:romcollectionbrowser,代码行数:14,代码来源:gui.py

示例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 ) 
开发者ID:taxigps,项目名称:xbmc-addons-chinese,代码行数:7,代码来源:addon.py

示例5: close

# 需要导入模块: import xbmcgui [as 别名]
# 或者: from xbmcgui import WindowXML [as 别名]
def close(self):
        xbmcgui.WindowXML.close(self)
        self.isCanceled = True 
开发者ID:seppius-xbmc-repo,项目名称:ru,代码行数:5,代码来源:mainform.py

示例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 
开发者ID:im85288,项目名称:service.nextup.notification,代码行数:12,代码来源:PostPlayInfo.py


注:本文中的xbmcgui.WindowXML方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。