diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2008-01-24 03:43:38 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2008-01-24 03:43:38 +0000 |
| commit | 1b4aad48a679d50a81692082e02040c56a9920a9 (patch) | |
| tree | 25ab568610d618522ce00e91d6fb9fecd4d68851 /lib/python/Components/Sources | |
| parent | 9e4a418c7ce0e0281ca8c06be4ee92a48eaab87a (diff) | |
| download | enigma2-1b4aad48a679d50a81692082e02040c56a9920a9.tar.gz enigma2-1b4aad48a679d50a81692082e02040c56a9920a9.zip | |
add count() to List source
Diffstat (limited to 'lib/python/Components/Sources')
| -rw-r--r-- | lib/python/Components/Sources/List.py | 3 |
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: |
