X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ee0903f520403c5e03caef287f813e7b062d05ab..ddb050fe8357a01b1fc52070ee9f87450c407c1c:/lib/python/Components/Converter/StringList.py diff --git a/lib/python/Components/Converter/StringList.py b/lib/python/Components/Converter/StringList.py index 31dbcd3c..ed264651 100644 --- a/lib/python/Components/Converter/StringList.py +++ b/lib/python/Components/Converter/StringList.py @@ -4,17 +4,17 @@ from enigma import eListboxPythonStringContent class StringList(Converter): """Turns a simple python list into a list which can be used in a listbox.""" - def __init__(self, *args, **kwargs): - Converter.__init__(self) + def __init__(self, type): + Converter.__init__(self, type) - def changed(self): + def changed(self, what): self.content = eListboxPythonStringContent() if self.source: self.content.setList(self.source.list) - self.downstream_elements.changed() + self.downstream_elements.changed(what) def selectionChanged(self, index): - self.upstream_elements.selectionChanged(index) + self.source.selectionChanged(index) # update all non-master targets for x in self.downstream_elements: if x is not self.master: