From 31adb99c56e6b734c849f6caa475fbed613b27d7 Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 16 Jul 2010 20:14:01 +0800 Subject: [PATCH] wix: fixed wrong class Name in card_game --- frontends/wix/card_game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontends/wix/card_game.py b/frontends/wix/card_game.py index 9c071682..e197edf1 100644 --- a/frontends/wix/card_game.py +++ b/frontends/wix/card_game.py @@ -157,7 +157,7 @@ class CardPanel(wx.Panel): """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 @@ class CardPanel(wx.Panel): 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"""