Python xbmcgui.WindowXML() Examples
The following are 7
code examples of xbmcgui.WindowXML().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
xbmcgui
, or try the search function
.
Example #1
Source File: next_aired_dialog.py From script.tv.show.next.aired with GNU General Public License v2.0 | 6 votes |
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
Example #2
Source File: PostPlayInfo.py From service.nextup.notification with GNU General Public License v2.0 | 6 votes |
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)
Example #3
Source File: gui.py From romcollectionbrowser with GNU General Public License v2.0 | 5 votes |
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
Example #4
Source File: addon.py From xbmc-addons-chinese with GNU General Public License v2.0 | 5 votes |
def __init__( self, *args, **kwargs): self.session = None self.oldWindow = None self.busyCount = 0 xbmcgui.WindowXML.__init__( self )
Example #5
Source File: addon.py From xbmc-addons-chinese with GNU General Public License v2.0 | 5 votes |
def __init__( self, *args, **kwargs): self.session = None self.oldWindow = None self.busyCount = 0 xbmcgui.WindowXML.__init__( self )
Example #6
Source File: mainform.py From ru with GNU General Public License v2.0 | 5 votes |
def close(self): xbmcgui.WindowXML.close(self) self.isCanceled = True
Example #7
Source File: PostPlayInfo.py From service.nextup.notification with GNU General Public License v2.0 | 5 votes |
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