diff browser_side/dialog.py @ 49:f1d2eb9b2523

browser side: added about box
author Goffi <goffi@goffi.org>
date Thu, 26 May 2011 19:15:44 +0200
parents 153de5d461a4
children 4419ef07bb2b
line wrap: on
line diff
--- a/browser_side/dialog.py	Thu May 26 18:44:31 2011 +0200
+++ b/browser_side/dialog.py	Thu May 26 19:15:44 2011 +0200
@@ -124,11 +124,12 @@
         self.callback = callback
         _body = VerticalPanel()
         _body.setSize('100%','100%')
-        _body.setHorizontalAlignment(HasAlignment.ALIGN_CENTER)
         _body.setSpacing(4)
         _body.add(widget)
         _body.setCellWidth(widget, '100%')
-        _body.add(Button("Close", self.onClose))
+        _close_button = Button("Close", self.onClose)
+        _body.add(_close_button)
+        _body.setCellHorizontalAlignment(_close_button, HasAlignment.ALIGN_CENTER)
         self.setHTML(title)
         self.setWidget(_body)
         self.panel.setWidth('100%')