Mercurial > libervia-backend
diff frontends/wix/card_game.py @ 133:d998adb62d1a
wix: fixed wrong class Name in card_game
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 16 Jul 2010 20:14:01 +0800 |
parents | 6be927a465ed |
children | 8c80d4dec7a8 |
line wrap: on
line diff
--- a/frontends/wix/card_game.py Fri Jul 16 20:12:54 2010 +0800 +++ b/frontends/wix/card_game.py Fri Jul 16 20:14:01 2010 +0800 @@ -157,7 +157,7 @@ """Called when the player as to select hist contrat @param xml_data: SàT xml representation of the form""" misc = {'callback': self.contratSelected} - form = Form(self.parent.host, xml_data, title = _('Please choose your contrat'), options = ['NO_CANCEL'], misc = misc) + form = XMLUI(self.parent.host, xml_data, title = _('Please choose your contrat'), options = ['NO_CANCEL'], misc = misc) def showCards(self, game_stage, cards, data): """Display cards in the middle of the game (to show for e.g. chien ou poignée)""" @@ -178,7 +178,7 @@ def showScores(self, xml_data, winners, loosers): """Called when the player as to select hist contrat @param xml_data: SàT xml representation of the form""" - form = Form(self.parent.host, xml_data, title = _('You win \o/') if self.player_nick in winners else _('You loose :('), options = ['NO_CANCEL']) + form = XMLUI(self.parent.host, xml_data, title = _('You win \o/') if self.player_nick in winners else _('You loose :('), options = ['NO_CANCEL']) def cardsPlayed(self, player, cards): """A card has been played by player"""