예제 #1
0
파일: mc_xbmc.py 프로젝트: Mindman4/navi-x
 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
파일: mc_xbmc.py 프로젝트: wolfenbit/navi-x
 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
파일: mc_xbmc.py 프로젝트: Mindman4/navi-x
 def __init__(self):
     self.skins = {}
     self.load_skins()
     self.window_name = dict((v,k) for k,v in WINDOWS_ID.items())
예제 #8
0
파일: mc_xbmc.py 프로젝트: wolfenbit/navi-x
 def __init__(self):
     self.skins = {}
     self.load_skins()
     self.window_name = dict((v, k) for k, v in WINDOWS_ID.items())