From 52b4ce227fb84cfee8312d2d92a8ff7215c80c32 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 3 Nov 2009 17:41:56 +0100 Subject: [PATCH] Always give the Listbox items. PyS60 doesn't support a Listbox without items. --- src/gui/gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/gui.py b/src/gui/gui.py index 5c4d0b8..50c6d31 100644 --- a/src/gui/gui.py +++ b/src/gui/gui.py @@ -207,8 +207,8 @@ class ListView(View): def __init__(self): super(ListView, self).__init__() self.current_index = None - self.items_cache = [] - self.set_view(appuifw.Listbox([], self.entry_selected)) + self.items_cache = self.items() + self.set_view(appuifw.Listbox(self.items_cache, self.entry_selected)) self.view.bind(EKeyUpArrow,lambda: self.arrow_key_pressed(-1)) self.view.bind(EKeyDownArrow,lambda: self.arrow_key_pressed(1)) -- 2.30.2