- add listbox
[enigma2.git] / components.py
index 4c26c0a029b4cfb10de887f2ca79a68b06626070..8115ecf420bd7b9e3bea285bfa705487483585a8 100644 (file)
@@ -97,8 +97,10 @@ class GUIComponent:
                i = self.GUIcreateInstance(self, parent, skindata)
                priv["instance"] = i
                self.notifier.append(i)
-               if self.notifierAdded:
+               try:
                        self.notifierAdded(i)
+               except:
+                       pass
        
        # GUIdelete must delete *all* references to the current component!
        def GUIdelete(self, priv):
@@ -221,3 +223,11 @@ class VolumeBar(HTMLComponent, GUIComponent, VariableValue):
                g = eSlider(parent)
                g.setRange(0, 100)
                return g
+
+class MenuList(HTMLComponent, GUIComponent):
+       def __init__(self):
+               GUIComponent.__init__(self)
+       
+       def GUIcreateInstance(self, priv, parent, skindata):
+               g = eListbox(parent)
+               return g