示例#1
0
 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
示例#2
0
 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
示例#3
0
 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
示例#4
0
 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
示例#5
0
 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
示例#6
0
 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
示例#7
0
 def __init__(self):
     self.skins = {}
     self.load_skins()
     self.window_name = dict((v,k) for k,v in WINDOWS_ID.items())
示例#8
0
 def __init__(self):
     self.skins = {}
     self.load_skins()
     self.window_name = dict((v, k) for k, v in WINDOWS_ID.items())