comparison browser_side/dialog.py @ 238:dec76d4536ad

browser_side: set CSS margin: auto for all button panels
author souliane <souliane@mailoo.org>
date Fri, 11 Oct 2013 15:40:29 +0200
parents fab7aa366576
children a565ce2facc0
comparison
equal deleted inserted replaced
237:531b8809d1ab 238:dec76d4536ad
60 self.contacts_list.setWidth("100%") 60 self.contacts_list.setWidth("100%")
61 self.contacts_list.setStyleName('contactsChooser') 61 self.contacts_list.setStyleName('contactsChooser')
62 self.contacts_list.addChangeListener(self.onChange) 62 self.contacts_list.addChangeListener(self.onChange)
63 content.add(self.contacts_list) 63 content.add(self.contacts_list)
64 button_panel = HorizontalPanel() 64 button_panel = HorizontalPanel()
65 button_panel.addStyleName("marginAuto")
65 self.choose_button = Button("Choose", self.onChoose) 66 self.choose_button = Button("Choose", self.onChoose)
66 if (nb_contact): 67 if (nb_contact):
67 self.choose_button.setEnabled(False) 68 self.choose_button.setEnabled(False)
68 button_panel.add(self.choose_button) 69 button_panel.add(self.choose_button)
69 button_panel.add(Button("Cancel", self.onCancel)) 70 button_panel.add(Button("Cancel", self.onCancel))
236 add_group_panel.add(add_group_tb) 237 add_group_panel.add(add_group_tb)
237 add_group_panel.add(add_group_bt) 238 add_group_panel.add(add_group_bt)
238 main_panel.add(add_group_panel) 239 main_panel.add(add_group_panel)
239 240
240 button_panel = HorizontalPanel() 241 button_panel = HorizontalPanel()
242 button_panel.addStyleName("marginAuto")
241 button_panel.add(Button(ok_title, self.onOK)) 243 button_panel.add(Button(ok_title, self.onOK))
242 button_panel.add(Button("Cancel", self.onCancel)) 244 button_panel.add(Button("Cancel", self.onCancel))
243 main_panel.add(button_panel) 245 main_panel.add(button_panel)
244 246
245 self.setWidget(main_panel) 247 self.setWidget(main_panel)