aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-11-22 10:41:55 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-11-22 10:41:55 +0000
commit76fe69e113637a200aafdc2d6dede772706e4b09 (patch)
tree60fee076b53f573187a54a303e50dc7eb03de707 /lib
parentff9c3a5173a77c05e97f89219d7071238208f660 (diff)
downloadenigma2-76fe69e113637a200aafdc2d6dede772706e4b09.tar.gz
enigma2-76fe69e113637a200aafdc2d6dede772706e4b09.zip
initialize self.list
Diffstat (limited to 'lib')
-rw-r--r--lib/python/Components/SelectionList.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Components/SelectionList.py b/lib/python/Components/SelectionList.py
index a64f46b4..6b02e5bc 100644
--- a/lib/python/Components/SelectionList.py
+++ b/lib/python/Components/SelectionList.py
@@ -13,11 +13,11 @@ def SelectionEntryComponent(description, value, index, selected):
return res
class SelectionList(MenuList, GUIComponent):
- def __init__(self, list = []):
+ def __init__(self, list = None):
GUIComponent.__init__(self)
self.l = eListboxPythonMultiContent()
- self.list = list
- self.setList(list)
+ self.list = list or []
+ self.setList(self.list)
self.l.setFont(0, gFont("Regular", 20))
self.l.setItemHeight(30)