X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/67b53c1cb06988394c35a6e965c99b72b67fe1be..1b4aad48a679d50a81692082e02040c56a9920a9:/lib/python/Components/Sources/List.py?ds=sidebyside diff --git a/lib/python/Components/Sources/List.py b/lib/python/Components/Sources/List.py index d7221296..71be0807 100644 --- a/lib/python/Components/Sources/List.py +++ b/lib/python/Components/Sources/List.py @@ -26,6 +26,9 @@ to generate HTML.""" def entry_changed(self, index): if not self.disable_callbacks: self.downstream_elements.entry_changed(self, index) + + def count(self): + return len(self.__list) def selectionChanged(self, index): if self.disable_callbacks: @@ -49,7 +52,7 @@ to generate HTML.""" if self.master is not None: return self.master.index else: - return -1 + return None setCurrentIndex = setIndex