aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/MovieList.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-08-08 10:03:52 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-08-08 10:03:52 +0000
commitfb284fcd5704b0f710ece9d0e6064d53ad4aa35e (patch)
treecaf213c8c2a410db4e278df28f111a96bef6c6f8 /lib/python/Components/MovieList.py
parent653ab529ca34772310509f4a2cde1778c6f8dcd1 (diff)
downloadenigma2-fb284fcd5704b0f710ece9d0e6064d53ad4aa35e.tar.gz
enigma2-fb284fcd5704b0f710ece9d0e6064d53ad4aa35e.zip
set defaults for list type, sort type and description visibility state
Diffstat (limited to 'lib/python/Components/MovieList.py')
-rw-r--r--lib/python/Components/MovieList.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/python/Components/MovieList.py b/lib/python/Components/MovieList.py
index 8e4fc043..6a264098 100644
--- a/lib/python/Components/MovieList.py
+++ b/lib/python/Components/MovieList.py
@@ -10,19 +10,19 @@ class MovieList(GUIComponent):
SORT_ALPHANUMERIC = 1
SORT_RECORDED = 2
- LISTTYPE_ORIGINAL = 0
- LISTTYPE_COMPACT_DESCRIPTION = 1
- LISTTYPE_COMPACT = 2
- LISTTYPE_MINIMAL = 3
+ LISTTYPE_ORIGINAL = 1
+ LISTTYPE_COMPACT_DESCRIPTION = 2
+ LISTTYPE_COMPACT = 3
+ LISTTYPE_MINIMAL = 4
- HIDE_DESCRIPTION = 0
- SHOW_DESCRIPTION = 1
+ HIDE_DESCRIPTION = 1
+ SHOW_DESCRIPTION = 2
- def __init__(self, root, list_type, sort_type, descr_state):
+ def __init__(self, root, list_type=None, sort_type=None, descr_state=None):
GUIComponent.__init__(self)
- self.list_type = list_type
- self.descr_state = descr_state
- self.sort_type = sort_type
+ self.list_type = list_type or self.LISTTYPE_ORIGINAL
+ self.descr_state = descr_state or self.HIDE_DESCRIPTION
+ self.sort_type = sort_type or self.SORT_RECORDED
self.l = eListboxPythonMultiContent()
self.tags = set()