Mercurial > libervia-web
comparison browser_side/panels.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 | 72c51a4839cc |
comparison
equal
deleted
inserted
replaced
48:153de5d461a4 | 49:f1d2eb9b2523 |
---|---|
88 _dialog = dialog.InfoDialog("Contrat Social", _frame) | 88 _dialog = dialog.InfoDialog("Contrat Social", _frame) |
89 _dialog.setSize('80%', '80%') | 89 _dialog.setSize('80%', '80%') |
90 _dialog.show() | 90 _dialog.show() |
91 | 91 |
92 def onAbout(self): | 92 def onAbout(self): |
93 dialog.SimpleDialog("About", "Libervia, a Salut à Toi project").show() | 93 _about = HTML("""<b>Libervia</b>, a Salut à Toi project<br /> |
94 <br /> | |
95 You can contact the author at <a href="mailto:goffi@goffi.org">goffi@goffi.org</a><br /> | |
96 Blog available (mainly in french) at <a href="http://www.goffi.org" target="_blank">http://www.goffi.org</a><br /> | |
97 Project page: <a href="http://wiki.goffi.org/wiki/Salut_à_Toi"target="_blank">http://wiki.goffi.org/wiki/Salut_à_Toi</a><br /> | |
98 <br /> | |
99 Any help Welcome :) | |
100 """) | |
101 _dialog = dialog.InfoDialog("About", _about) | |
102 _dialog.show() | |
94 | 103 |
95 #Game menu | 104 #Game menu |
96 | 105 |
97 def onTarotGame(self): | 106 def onTarotGame(self): |
98 #Window.alert("Tarot selected") | 107 #Window.alert("Tarot selected") |
100 def onPlayersSelected(other_players): | 109 def onPlayersSelected(other_players): |
101 self.host.bridge.call('launchTarotGame', None, other_players) | 110 self.host.bridge.call('launchTarotGame', None, other_players) |
102 dialog.ContactsChooser(self.host, onPlayersSelected, 3, text="Please select 3 other players").getContacts() | 111 dialog.ContactsChooser(self.host, onPlayersSelected, 3, text="Please select 3 other players").getContacts() |
103 | 112 |
104 def onXiangqiGame(self): | 113 def onXiangqiGame(self): |
105 Window.alert("A Xiangqi is planed, but not available yet") | 114 Window.alert("A Xiangqi game is planed, but not available yet") |
106 | 115 |
107 class DropCell(DropWidget): | 116 class DropCell(DropWidget): |
108 """Cell in the middle grid which replace itself with the dropped widget on DnD""" | 117 """Cell in the middle grid which replace itself with the dropped widget on DnD""" |
109 | 118 |
110 def __init__(self): | 119 def __init__(self): |