diff browser_side/dialog.py @ 262:30c01671e338

browser_side: small changes for contact list and "add group" panel: - GenericContactList get a boolean argument "handleClick" to enable/disable the click handler at instanciation - textbox in "add group" panel can be accessed from outside
author souliane <souliane@mailoo.org>
date Mon, 11 Nov 2013 10:44:44 +0100
parents da0487f0a2e7
children 79970bf6af93
line wrap: on
line diff
--- a/browser_side/dialog.py	Fri Nov 15 15:34:57 2013 +0100
+++ b/browser_side/dialog.py	Mon Nov 11 10:44:44 2013 +0100
@@ -291,9 +291,9 @@
         HorizontalPanel.__init__(self)
         self.groups = groups
         self.add(Label('Add group:'))
-        textbox = ExtTextBox(enter_cb=self.onGroupInput)
-        self.add(textbox)
-        self.add(Button("add", lambda sender: self.onGroupInput(textbox)))
+        self.textbox = ExtTextBox(enter_cb=self.onGroupInput)
+        self.add(self.textbox)
+        self.add(Button("add", lambda sender: self.onGroupInput(self.textbox)))
         self.cb = cb
 
     def onGroupInput(self, sender):