git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
initialize self.list
[enigma2.git]
/
lib
/
python
/
Components
/
SelectionList.py
diff --git
a/lib/python/Components/SelectionList.py
b/lib/python/Components/SelectionList.py
index a64f46b4ce15aa3f7b189ccf07ed759e6166e2df..6b02e5bca60d6eace6e6d51d28c6d4536a684f7c 100644
(file)
--- 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):
return res
class SelectionList(MenuList, GUIComponent):
- def __init__(self, list =
[]
):
+ def __init__(self, list =
None
):
GUIComponent.__init__(self)
self.l = eListboxPythonMultiContent()
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)
self.l.setFont(0, gFont("Regular", 20))
self.l.setItemHeight(30)