simplify GUIcreate/createWidget, fix base class order
[vuplus_dvbapp] / lib / python / Components / MovieList.py
index 3b7e7e3..970180c 100644 (file)
@@ -63,15 +63,12 @@ class MovieList(HTMLComponent, GUIComponent):
                l = self.l.getCurrentSelection()
                return l and l[0]
 
-       def GUIcreate(self, parent):
-               self.instance = eListbox(parent)
-               self.instance.setContent(self.l)
-               self.instance.setItemHeight(75)
+       GUI_WIDGET = eListbox
+       
+       def postWidgetCreate(self, instance):
+               instance.setContent(self.l)
+               instance.setItemHeight(75)
        
-       def GUIdelete(self):
-               self.instance.setContent(None)
-               self.instance = None
-
        def reload(self, root = None):
                if root is not None:
                        self.load(root)