From: Matthijs Kooijman Date: Mon, 17 Aug 2009 22:07:51 +0000 (+0200) Subject: Make ListView.change_entry always call its super. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fmobilegtd.git;a=commitdiff_plain;h=f5dcb1ff56f0883463ddd14780bf1f89ce3c222e Make ListView.change_entry always call its super. This makes it work in multiple inheritance situations. Also document the method. --- diff --git a/src/gui/gui.py b/src/gui/gui.py index a8f2171..30ae4e2 100644 --- a/src/gui/gui.py +++ b/src/gui/gui.py @@ -152,7 +152,11 @@ class ListView(View): self.set_view(appuifw.Listbox(self.items(),self.change_entry)) def change_entry(self): - pass + """ + 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() def update(self,subject=None): #logger.log(u'Updated %s'%repr(self))