Fix entry_changed in Listbox
authorFelix Domke <tmbinc@elitedvb.net>
Fri, 13 Feb 2009 11:26:07 +0000 (12:26 +0100)
committerFelix Domke <tmbinc@elitedvb.net>
Fri, 13 Feb 2009 11:26:07 +0000 (12:26 +0100)
lib/python/Components/Converter/StringList.py
lib/python/Components/Renderer/Listbox.py

index c9488db..acbba34 100644 (file)
@@ -43,3 +43,6 @@ class StringList(Converter):
                        self.master.index = index
 
        index = property(getIndex, setIndex)
+
+       def entry_changed(self, index):
+               self.downstream_elements.entry_changed(index)
index 8e510b4..7a89533 100644 (file)
@@ -78,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)