comparison src/browser/sat_browser/dialog.py @ 735:e4ae8e2b0afd

browser_side: improve PopupMenuPanel comments + rename a button + better PEP8 compliance
author souliane <souliane@mailoo.org>
date Thu, 19 Nov 2015 11:19:05 +0100
parents 7a9c7b9f6a28
children f8a7a046ff9c
comparison
equal deleted inserted replaced
734:26046f13e93b 735:e4ae8e2b0afd
510 """ 510 """
511 @param groups: list of the already existing groups 511 @param groups: list of the already existing groups
512 """ 512 """
513 HorizontalPanel.__init__(self) 513 HorizontalPanel.__init__(self)
514 self.groups = groups 514 self.groups = groups
515 self.add(Label('Add group:')) 515 self.add(Label('New group:'))
516 self.textbox = ExtTextBox(enter_cb=self.onGroupInput) 516 self.textbox = ExtTextBox(enter_cb=self.onGroupInput)
517 self.add(self.textbox) 517 self.add(self.textbox)
518 self.add(Button("add", lambda sender: self.onGroupInput(self.textbox))) 518 self.add(Button("Add", lambda sender: self.onGroupInput(self.textbox)))
519 self.cb = cb 519 self.cb = cb
520 520
521 def onGroupInput(self, sender): 521 def onGroupInput(self, sender):
522 text = sender.getText() 522 text = sender.getText()
523 if text == "": 523 if text == "":