Components/GUISkin.py: - add possibility to access the Screen title from inside the...
[enigma2.git] / lib / python / Components / Renderer / Listbox.py
index 7c79acb74429484345761b7e447cd8a51eddddef..7a895330aa2381f8cc03d5c6348e346096cdabee 100644 (file)
@@ -39,6 +39,10 @@ class Listbox(Renderer, object):
                self.wrap_around = self.wrap_around # trigger
                self.selection_enabled = self.selection_enabled # trigger
 
+       def preWidgetRemove(self, instance):
+               instance.setContent(None)
+               instance.selectionChanged.get().remove(self.selectionChanged)
+
        def setWrapAround(self, wrap_around):
                self.__wrap_around = wrap_around
                if self.instance is not None:
@@ -74,3 +78,7 @@ class Listbox(Renderer, object):
 
        def changed(self, what):
                self.content = self.source.content
+
+       def entry_changed(self, index):
+               if self.instance is not None:
+                       self.instance.entryChanged(index)