Mercurial > libervia-web
comparison browser_side/contact_group.py @ 392:f539f6f8ee9c
browser_side: standardize the dialogs size and buttons display:
- do not set a default width/height for the XMLUI dialogs
- do not display an extra "Close" button when XMLUI form is showed
- the buttons order is OK/Save on the left, Cancel/Close on the right
- horizontally center the dialog buttons
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 03 Mar 2014 16:24:00 +0100 |
parents | ce5b33f499c5 |
children | 20c508f9b32a |
comparison
equal
deleted
inserted
replaced
391:c86d7a8d2c1e | 392:f539f6f8ee9c |
---|---|
143 | 143 |
144 def getCloseSaveButtons(self): | 144 def getCloseSaveButtons(self): |
145 """Add the buttons to close the dialog / save the groups""" | 145 """Add the buttons to close the dialog / save the groups""" |
146 buttons = HorizontalPanel() | 146 buttons = HorizontalPanel() |
147 buttons.addStyleName("marginAuto") | 147 buttons.addStyleName("marginAuto") |
148 buttons.add(Button("Save", listener=self.closeAndSave)) | |
148 buttons.add(Button("Cancel", listener=self.cancelWithoutSaving)) | 149 buttons.add(Button("Cancel", listener=self.cancelWithoutSaving)) |
149 buttons.add(Button("Save", listener=self.closeAndSave)) | |
150 return buttons | 150 return buttons |
151 | 151 |
152 def getContactList(self): | 152 def getContactList(self): |
153 """Add the contact list to the DockPanel""" | 153 """Add the contact list to the DockPanel""" |
154 self.toggle = Button("", self.toggleContacts) | 154 self.toggle = Button("", self.toggleContacts) |