def load_skins(self): for key in WINDOWS_ID.keys(): mod = __import__(key) components = key.split('.') for comp in components[1:]: mod = getattr(mod, comp) self.skins[ WINDOWS_ID[key] ] = mod
def load_skins(self): for key in WINDOWS_ID.keys(): mod = __import__(key) components = key.split('.') for comp in components[1:]: mod = getattr(mod, comp) self.skins[WINDOWS_ID[key]] = mod
def load(self): for key in WINDOWS_ID.keys(): mod = __import__(key) components = key.split('.') for comp in components[1:]: mod = getattr(mod, comp) self.modules[key] = mod
def run(self, id, var): global window window_name = [k for k, v in WINDOWS_ID.iteritems() if v == id][0] settings = xbmcaddon.Addon(id = GetApp().GetId() ) path = settings.getAddonInfo('path') ui = self.modules[window_name].skin('%s.xml' % window_name , path, "Default") if 'dialog' in window_name: ui.show() else: ui.doModal() window = ui
def run(self, id, var): global window window_name = [k for k, v in WINDOWS_ID.iteritems() if v == id][0] settings = xbmcaddon.Addon(id=GetApp().GetId()) path = settings.getAddonInfo('path') ui = self.modules[window_name].skin('%s.xml' % window_name, path, "Default") if 'dialog' in window_name: ui.show() else: ui.doModal() window = ui
def __init__(self): self.skins = {} self.load_skins() self.window_name = dict((v,k) for k,v in WINDOWS_ID.items())
def __init__(self): self.skins = {} self.load_skins() self.window_name = dict((v, k) for k, v in WINDOWS_ID.items())