Make ListView.change_entry always call its super.
authorMatthijs Kooijman <matthijs@stdin.nl>
Mon, 17 Aug 2009 22:07:51 +0000 (00:07 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Mon, 17 Aug 2009 22:07:51 +0000 (00:07 +0200)
This makes it work in multiple inheritance situations. Also document the
method.

src/gui/gui.py

index a8f217164e1d3b399dc6e63a683be89e814d2e0e..30ae4e2745bd6290ac47487bfdffca6d57c748f9 100644 (file)
@@ -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))