comparison browser_side/dialog.py @ 208:bbcad87585eb

browser side: added "add" button in GroupSelector's add group dialog fix bug 15
author Goffi <goffi@goffi.org>
date Fri, 28 Jun 2013 00:05:52 +0200
parents 9763dec220ed
children 4564c7bc06a7
comparison
equal deleted inserted replaced
207:a43b66af3872 208:bbcad87585eb
217 main_panel.add(self.list_box) 217 main_panel.add(self.list_box)
218 218
219 add_group_panel = HorizontalPanel() 219 add_group_panel = HorizontalPanel()
220 add_group_lb = Label('Add group:') 220 add_group_lb = Label('Add group:')
221 add_group_tb = ExtTextBox(enter_cb = self.onGroupInput) 221 add_group_tb = ExtTextBox(enter_cb = self.onGroupInput)
222 add_group_bt = Button("add", lambda sender: self.onGroupInput(add_group_tb))
222 add_group_panel.add(add_group_lb) 223 add_group_panel.add(add_group_lb)
223 add_group_panel.add(add_group_tb) 224 add_group_panel.add(add_group_tb)
225 add_group_panel.add(add_group_bt)
224 main_panel.add(add_group_panel) 226 main_panel.add(add_group_panel)
225 227
226 button_panel = HorizontalPanel() 228 button_panel = HorizontalPanel()
227 button_panel.add(Button("Add", self.onOK)) 229 button_panel.add(Button("Add", self.onOK))
228 button_panel.add(Button("Cancel", self.onCancel)) 230 button_panel.add(Button("Cancel", self.onCancel))