123
authoruser <user@debian.(none)>
Sun, 7 Feb 2010 19:35:21 +0000 (21:35 +0200)
committeruser <user@debian.(none)>
Sun, 7 Feb 2010 19:35:21 +0000 (21:35 +0200)
list.py

diff --git a/list.py b/list.py
index cad5e29..7872afb 100755 (executable)
--- a/list.py
+++ b/list.py
@@ -111,7 +111,7 @@ class List:
         #create button for back
         but = gtk.Button(widget.get_model()[path][1])
         #add callback function
-        #but.connect("clicked", self.button_back, parent)
+        but.connect("clicked", self.button_back, parent)
 
         self.hbox.add(but)
         but.show()
@@ -124,6 +124,9 @@ class List:
             store.append([d, data[d], 1])
         self.tree.set_model(store)    
 
+    def button_back(self, widget, data=None):
+        print "button back data= %i " % data
+
     def show_record(self, id):
         self.dialog = gtk.Dialog("Item descrition", 
                                 self.window,