simplify GUIcreate/createWidget, fix base class order
[enigma2.git] / lib / python / Components / PluginList.py
index 1b4daf184d5dce7d8bdbcec1f4b150c357e65b51..7220f0a9349d4f09d33895fafa6aeb7cb8edf0d3 100644 (file)
@@ -44,7 +44,7 @@ def PluginDownloadComponent(plugin, name):
        
        return res
 
-class PluginList(HTMLComponent, GUIComponent, MenuList):
+class PluginList(MenuList, HTMLComponent, GUIComponent):
        def __init__(self, list):
                GUIComponent.__init__(self)
                self.l = eListboxPythonMultiContent()
@@ -52,8 +52,9 @@ class PluginList(HTMLComponent, GUIComponent, MenuList):
                self.l.setList(list)
                self.l.setFont(0, gFont("Regular", 20))
                self.l.setFont(1, gFont("Regular", 14))
-       
-       def GUIcreate(self, parent):
-               self.instance = eListbox(parent)
-               self.instance.setContent(self.l)
-               self.instance.setItemHeight(50)
+
+       GUI_WIDGET = eListbox
+
+       def postWidgetCreate(self, instance):
+               instance.setContent(self.l)
+               instance.setItemHeight(50)