Search menu bug fix
authorDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Sat, 15 Mar 2008 06:12:54 +0000 (02:12 -0400)
committerDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Sat, 15 Mar 2008 06:12:54 +0000 (02:12 -0400)
ceo/urwid/main.py

index e852dfa..1c96a79 100644 (file)
@@ -107,15 +107,13 @@ def display_member(data):
     ], (60, 15))
 
 def search_members(data):
-    menu = [
+    menu = make_menu([
         ("Members by term", search_term, None),
         ("Members by name", search_name, None),
         ("Members by group", search_group, None),
         ("Back", raise_back, None),
-    ]
-
-    listbox = urwid.ListBox( menu_items( menu ) )
-    push_window(listbox, "Search")
+    ])
+    push_window(menu, "Search")
 
 def search_name(data):
     push_wizard("By Name", [ search.NamePage ])