- While recording, collect startcodes and save them into ".sc"-files
[vuplus_dvbapp] / lib / python / Components / Renderer / Listbox.py
index 7c79acb..7a89533 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)