class ListView(View):
def __init__(self):
super(ListView, self).__init__()
- self.set_view(appuifw.Listbox(self.items(),self.change_entry))
+ self.set_view(appuifw.Listbox(self.items(),self.entry_selected))
- def change_entry(self):
+ def entry_selected(self):
"""
This function is called when the user selects an an entry (e.g.,
navigates to it and push the ok button).
"""
- super(ListView).change_entry()
+ super(ListView).entry_selected()
def update(self,subject=None):
#logger.log(u'Updated %s'%repr(self))
key_and_menu_bindings.append((get_key(key),key,description,execute_and_update_function))
return key_and_menu_bindings
- def change_entry(self):
+ def entry_selected(self):
self.current_widget().change()
self.refresh()
def execute_and_update(self,function):