wix: fixed wrong class Name in card_game

This commit is contained in:
Goffi 2010-07-16 20:14:01 +08:00
commit 31adb99c56

View file

@ -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"""