當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。