allow different skins by specifying a list as skinName, use menu_<menuid> as alternat...
[enigma2.git] / lib / python / Screens / Menu.py
index 1b0ef1a309b3a904c018da5f4c1dceb1606822fc..5ff929c6e912982ca4b57662d8c7b95350056fdd 100644 (file)
@@ -205,8 +205,14 @@ class Menu(Screen):
                        for l in plugins.getPluginsForMenu(menuID):
                                list.append((l[0], boundFunction(l[1], self.session)))
 
+               # for the skin: first try a menu_<menuID>, then Menu
+               self.skinName = [ ]
+               if menuID is not None:
+                       self.skinName.append("menu_" + menuID)
+               self.skinName.append("Menu")
+
                self["menu"] = List(list)       
-                                                       
+
                self["actions"] = ActionMap(["OkCancelActions", "MenuActions"], 
                        {
                                "ok": self.okbuttonClick,
@@ -233,5 +239,5 @@ class MainMenu(Menu):
        #add file load functions for the xml-file
        
        def __init__(self, *x):
-               Menu.__init__(self, *x)
                self.skinName = "Menu"
+               Menu.__init__(self, *x)