# HG changeset patch # User Goffi # Date 1306430144 -7200 # Node ID f1d2eb9b25239b33a4f8f4a54091df57bae90016 # Parent 153de5d461a40d5a88785e1bb8792c6bde9be163 browser side: added about box diff -r 153de5d461a4 -r f1d2eb9b2523 browser_side/dialog.py --- 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%') diff -r 153de5d461a4 -r f1d2eb9b2523 browser_side/panels.py --- a/browser_side/panels.py Thu May 26 18:44:31 2011 +0200 +++ b/browser_side/panels.py Thu May 26 19:15:44 2011 +0200 @@ -90,7 +90,16 @@ _dialog.show() def onAbout(self): - dialog.SimpleDialog("About", "Libervia, a Salut à Toi project").show() + _about = HTML("""Libervia, a Salut à Toi project
+
+You can contact the author at goffi@goffi.org
+Blog available (mainly in french) at http://www.goffi.org
+Project page: http://wiki.goffi.org/wiki/Salut_à_Toi
+
+Any help Welcome :) +""") + _dialog = dialog.InfoDialog("About", _about) + _dialog.show() #Game menu @@ -102,7 +111,7 @@ dialog.ContactsChooser(self.host, onPlayersSelected, 3, text="Please select 3 other players").getContacts() def onXiangqiGame(self): - Window.alert("A Xiangqi is planed, but not available yet") + Window.alert("A Xiangqi game is planed, but not available yet") class DropCell(DropWidget): """Cell in the middle grid which replace itself with the dropped widget on DnD"""