Mercurial > libervia-web
comparison browser_side/menu.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 | c86d7a8d2c1e |
children | 4fcf9bac109c |
comparison
equal
deleted
inserted
replaced
391:c86d7a8d2c1e | 392:f539f6f8ee9c |
---|---|
329 | 329 |
330 def onAvatarUpload(self): | 330 def onAvatarUpload(self): |
331 body = AvatarUpload() | 331 body = AvatarUpload() |
332 _dialog = dialog.GenericDialog("Avatar upload", body, options=['NO_CLOSE']) | 332 _dialog = dialog.GenericDialog("Avatar upload", body, options=['NO_CLOSE']) |
333 body.setCloseCb(_dialog.close) | 333 body.setCloseCb(_dialog.close) |
334 _dialog.setSize('40%', '40%') | 334 _dialog.setWidth('40%') |
335 _dialog.show() | 335 _dialog.show() |