diff browser_side/file_tools.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 933bce4cb816
children 462fc3359ee3
line wrap: on
line diff
--- a/browser_side/file_tools.py	Mon Mar 03 15:44:54 2014 +0100
+++ b/browser_side/file_tools.py	Mon Mar 03 16:24:00 2014 +0100
@@ -97,12 +97,13 @@
 
         hPanel = HorizontalPanel()
         hPanel.setSpacing(5)
+        hPanel.setStyleName('marginAuto')
         self.file_upload = FilterFileUpload(input_id, max_size)
         self.vPanel.add(self.file_upload)
 
-        hPanel.add(Button(self.texts['cancel_button'], getattr(self, "onCloseBtnClick")))
         self.upload_btn = Button(self.texts['ok_button'], getattr(self, "onSubmitBtnClick"))
         hPanel.add(self.upload_btn)
+        hPanel.add(Button(self.texts['cancel_button'], getattr(self, "onCloseBtnClick")))
 
         self.status = Label()
         hPanel.add(self.status)