From: Matthijs Kooijman Date: Tue, 3 Nov 2009 16:41:56 +0000 (+0100) Subject: Always give the Listbox items. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=52b4ce227fb84cfee8312d2d92a8ff7215c80c32;p=matthijs%2Fupstream%2Fmobilegtd.git Always give the Listbox items. PyS60 doesn't support a Listbox without items. --- 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))