git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add count() to List source
[enigma2.git]
/
lib
/
python
/
Components
/
Sources
/
List.py
diff --git
a/lib/python/Components/Sources/List.py
b/lib/python/Components/Sources/List.py
index 82504401f866cf4a5531d3534f0aef17957348e1..71be0807f9ae0c0dfe3afb576c65a1b471d1cbb6 100644
(file)
--- 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: