moving the list generation to a seperate method
[enigma2.git] / lib / python / Components / MenuList.py
index 90cd328..03e6be6 100644 (file)
@@ -6,13 +6,14 @@ from enigma import eListboxPythonStringContent, eListbox
 class MenuList(HTMLComponent, GUIComponent):
        def __init__(self, list):
                GUIComponent.__init__(self)
+               self.list = list
                self.l = eListboxPythonStringContent()
-               self.l.setList(list)
+               self.l.setList(self.list)
        
        def getCurrent(self):
                return self.l.getCurrentSelection()
        
-       def GUIcreate(self, parent, skindata):
+       def GUIcreate(self, parent):
                self.instance = eListbox(parent)
                self.instance.setContent(self.l)