From 76fe69e113637a200aafdc2d6dede772706e4b09 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Thu, 22 Nov 2007 10:41:55 +0000 Subject: [PATCH 1/1] initialize self.list --- lib/python/Components/SelectionList.py | 6 +++--- 1 file 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) -- 2.30.2