1 from Components.Converter.Converter import Converter
2 from Components.Element import cached
4 class StringListSelection(Converter, object):
5 "extracts the first element of a the current string list element for displaying it on LCD"
6 def __init__(self, args):
7 Converter.__init__(self, args)
10 self.downstream_elements.changed((self.CHANGED_ALL, 0))
14 cur = self.source.current
19 text = property(getText)
21 def changed(self, what):
22 if what[0] == self.CHANGED_DEFAULT:
23 self.source.onSelectionChanged.append(self.selChanged)
24 Converter.changed(self, what)