aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Sources/List.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-01-24 03:43:38 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-01-24 03:43:38 +0000
commit1b4aad48a679d50a81692082e02040c56a9920a9 (patch)
tree25ab568610d618522ce00e91d6fb9fecd4d68851 /lib/python/Components/Sources/List.py
parent9e4a418c7ce0e0281ca8c06be4ee92a48eaab87a (diff)
downloadenigma2-1b4aad48a679d50a81692082e02040c56a9920a9.tar.gz
enigma2-1b4aad48a679d50a81692082e02040c56a9920a9.zip
add count() to List source
Diffstat (limited to 'lib/python/Components/Sources/List.py')
-rw-r--r--lib/python/Components/Sources/List.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/Components/Sources/List.py b/lib/python/Components/Sources/List.py
index 82504401..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: