예제 #1
0
파일: update.py 프로젝트: Josh5/tinyos
def setAlarm(mins):
    #set script to run again in x minutes

    updateMins = mins
    addonPath  = utils.getAddonPath(False)
    name       = 'TinyHTPC Update'
    script     = os.path.join(addonPath, 'update.py')
    args       = '1' #silent
    cmd        = 'AlarmClock(%s,RunScript(%s,%s),%d,True)' % (name, script, args, updateMins)

    xbmc.executebuiltin('CancelAlarm(%s,True)' % name)        
    xbmc.executebuiltin(cmd)
예제 #2
0
def setAlarm(mins):
    #set script to run again in x minutes

    updateMins = mins
    addonPath = utils.getAddonPath(False)
    name = 'TLBB Update'
    script = os.path.join(addonPath, 'update.py')
    args = '1'  #silent
    cmd = 'AlarmClock(%s,RunScript(%s,%s),%d,True)' % (name, script, args,
                                                       updateMins)

    xbmc.executebuiltin('CancelAlarm(%s,True)' % name)
    xbmc.executebuiltin(cmd)
예제 #3
0
 def __new__(cls, style):
     return super(Keyboard, cls).__new__(cls,
                                         utils.getStyle(style) + '.xml',
                                         utils.getAddonPath())
예제 #4
0
 def __new__(cls):
     return super(Background, cls).__new__(cls, 'background.xml',
                                           utils.getAddonPath())
예제 #5
0
 def __new__(cls, style):
     return super(Keyboard, cls).__new__(cls, utils.getStyle(style)+'.xml', utils.getAddonPath())
예제 #6
0
 def __new__(cls):
     return super(Background, cls).__new__(cls, 'background.xml', utils.getAddonPath())