comparison 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
comparison
equal deleted inserted replaced
261:3df0c3634c29 262:30c01671e338
289 @param groups: list of the already existing groups 289 @param groups: list of the already existing groups
290 """ 290 """
291 HorizontalPanel.__init__(self) 291 HorizontalPanel.__init__(self)
292 self.groups = groups 292 self.groups = groups
293 self.add(Label('Add group:')) 293 self.add(Label('Add group:'))
294 textbox = ExtTextBox(enter_cb=self.onGroupInput) 294 self.textbox = ExtTextBox(enter_cb=self.onGroupInput)
295 self.add(textbox) 295 self.add(self.textbox)
296 self.add(Button("add", lambda sender: self.onGroupInput(textbox))) 296 self.add(Button("add", lambda sender: self.onGroupInput(self.textbox)))
297 self.cb = cb 297 self.cb = cb
298 298
299 def onGroupInput(self, sender): 299 def onGroupInput(self, sender):
300 text = sender.getText() 300 text = sender.getText()
301 if text == "": 301 if text == "":