diff browser_side/contact_group.py @ 422:20c508f9b32a

browser side: fixed bad use of Timer
author Goffi <goffi@goffi.org>
date Wed, 26 Mar 2014 17:34:01 +0100
parents f539f6f8ee9c
children 8ecc5a7062e4
line wrap: on
line diff
--- a/browser_side/contact_group.py	Tue Mar 25 16:09:12 2014 +0100
+++ b/browser_side/contact_group.py	Wed Mar 26 17:34:01 2014 +0100
@@ -37,7 +37,7 @@
     def __init__(self, parent, keys_dict, contact_list, offsets, style):
         ListManager.__init__(self, parent, keys_dict, contact_list, offsets, style)
         self.registerPopupMenuPanel(entries={"Remove group": {}},
-                                    callback=lambda sender, key: Timer(5, lambda: self.removeContactKey(sender, key)))
+                                    callback=lambda sender, key: Timer(5, lambda timer: self.removeContactKey(sender, key)))
 
     def removeContactKey(self, sender, key):
         key = sender.getText()