comparison 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
comparison
equal deleted inserted replaced
391:c86d7a8d2c1e 392:f539f6f8ee9c
95 self.message = HTML(self.texts['body']) 95 self.message = HTML(self.texts['body'])
96 self.vPanel.add(self.message) 96 self.vPanel.add(self.message)
97 97
98 hPanel = HorizontalPanel() 98 hPanel = HorizontalPanel()
99 hPanel.setSpacing(5) 99 hPanel.setSpacing(5)
100 hPanel.setStyleName('marginAuto')
100 self.file_upload = FilterFileUpload(input_id, max_size) 101 self.file_upload = FilterFileUpload(input_id, max_size)
101 self.vPanel.add(self.file_upload) 102 self.vPanel.add(self.file_upload)
102 103
103 hPanel.add(Button(self.texts['cancel_button'], getattr(self, "onCloseBtnClick")))
104 self.upload_btn = Button(self.texts['ok_button'], getattr(self, "onSubmitBtnClick")) 104 self.upload_btn = Button(self.texts['ok_button'], getattr(self, "onSubmitBtnClick"))
105 hPanel.add(self.upload_btn) 105 hPanel.add(self.upload_btn)
106 hPanel.add(Button(self.texts['cancel_button'], getattr(self, "onCloseBtnClick")))
106 107
107 self.status = Label() 108 self.status = Label()
108 hPanel.add(self.status) 109 hPanel.add(self.status)
109 110
110 self.vPanel.add(hPanel) 111 self.vPanel.add(hPanel)