Merge branch 'master' of /home/tmbinc/enigma2-git into tmbinc/FixTimingBugs
[enigma2.git] / lib / python / Components / Converter / StringList.py
index d424d39..226247c 100644 (file)
@@ -18,6 +18,8 @@ class StringList(Converter):
 
        def selectionChanged(self, index):
                self.source.selectionChanged(index)
+
+       def setIndex(self, index):
                # update all non-master targets
                print "changed selection in listbox!"
                for x in self.downstream_elements:
@@ -26,6 +28,11 @@ class StringList(Converter):
                                print "is not master, so update to index", index
                                x.index = index
 
+       def getIndex(self, index):
+               return None
+       
+       index = property(getIndex, setIndex)
+
        @cached
        def getCurrent(self):
                if self.source is None or self.index is None or self.index >= len(self.source.list):