X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=src%2Fgui%2Fgui.py;h=bbb5f0a8bf6609160f74ad52e28ee261712b6845;hb=d3a385101c990880979f5d40f54c844b0fdfe2e2;hp=aadffa50c2da1041989c581cdeba7b9f215ef902;hpb=b51e8daff4c4f353a334992891e564d562d6e98d;p=matthijs%2Fupstream%2Fmobilegtd.git diff --git a/src/gui/gui.py b/src/gui/gui.py index aadffa5..bbb5f0a 100644 --- a/src/gui/gui.py +++ b/src/gui/gui.py @@ -143,7 +143,7 @@ class View(object): Update the gui after a change in model or some user interaction. Should be filled by subclasses. """ - pass + appuifw.app.menu=self.get_menu_entries() def get_menu_entries(self): """ Returns a list of menu entries to display. Will be @@ -164,7 +164,7 @@ class ListView(View): This function is called when the user selects an an entry (e.g., navigates to it and push the ok button). """ - super(ListView).entry_selected() + pass def update(self,subject=None): #logger.log(u'Updated %s'%repr(self)) @@ -183,9 +183,6 @@ class ListView(View): index = 0 self.set_bindings_for_selection(index) - def refresh(self): - appuifw.app.menu=self.get_menu_entries() - def set_index(self,index): if index > len(self.widgets): index = len(self.widgets)