comparison browser_side/dialog.py @ 125:f9d63624699f

radio collective integration, first draft
author Goffi <goffi@goffi.org>
date Thu, 05 Jan 2012 00:22:03 +0100
parents 1c75fd97baf9
children ddfcc4cb6cee
comparison
equal deleted inserted replaced
124:6d1f4a3da29b 125:f9d63624699f
57 self.contacts_list.setStyleName('contactsChooser') 57 self.contacts_list.setStyleName('contactsChooser')
58 self.contacts_list.addChangeListener(self.onChange) 58 self.contacts_list.addChangeListener(self.onChange)
59 content.add(self.contacts_list) 59 content.add(self.contacts_list)
60 button_panel = HorizontalPanel() 60 button_panel = HorizontalPanel()
61 self.choose_button = Button("Choose", self.onChoose) 61 self.choose_button = Button("Choose", self.onChoose)
62 self.choose_button.setEnabled(False) 62 if (nb_contact):
63 self.choose_button.setEnabled(False)
63 button_panel.add(self.choose_button) 64 button_panel.add(self.choose_button)
64 button_panel.add(Button("Cancel", self.onCancel)) 65 button_panel.add(Button("Cancel", self.onCancel))
65 content.add(button_panel) 66 content.add(button_panel)
66 self.setHTML(text) 67 self.setHTML(text)
67 self.setWidget(content) 68 self.setWidget(content)