Mercurial > libervia-backend
diff frontends/src/primitivus/card_game.py @ 680:8281587eb528
primitivus, wix: fixed bridge methods calls for plugins radiocol and card game
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 22 Oct 2013 16:24:11 +0200 |
parents | 84a6e83157c2 |
children | 2805fa3f4bdf |
line wrap: on
line diff
--- a/frontends/src/primitivus/card_game.py Tue Oct 22 09:41:27 2013 +0200 +++ b/frontends/src/primitivus/card_game.py Tue Oct 22 16:24:11 2013 +0200 @@ -224,7 +224,7 @@ self.hand_wid = Hand(selectable = True, on_click = self.onClick) self.main_frame = urwid.Frame(self.center,header=self.top, footer=self.hand_wid, focus_part='footer') urwid.WidgetWrap.__init__(self,self.main_frame) - self.parent.host.bridge.tarotGameReady(player_nick, referee, profile_key = self.parent.host.profile) + self.parent.host.bridge.tarotGameReady(player_nick, referee, self.parent.host.profile) def loadCards(self): """Load all the cards in memory""" @@ -275,7 +275,7 @@ for location in ['top','left','bottom','right']: self.table.putCard(location, None) self.parent.host.redraw() - self.parent.host.bridge.tarotGameReady(self.player_nick, self.referee, profile_key = self.parent.host.profile) + self.parent.host.bridge.tarotGameReady(self.player_nick, self.referee, self.parent.host.profile) if not winners and not loosers: title = _("Draw game") else: @@ -329,7 +329,7 @@ self.parent.host.showPopUp(pop_up_widget) elif self.state == "play": card = card_wid.getCard() - self.parent.host.bridge.tarotGamePlayCards(self.player_nick, self.referee, [(card.suit, card.value)], profile_key = self.parent.host.profile) + self.parent.host.bridge.tarotGamePlayCards(self.player_nick, self.referee, [(card.suit, card.value)], self.parent.host.profile) self.hand.remove(card) self.hand_wid.update(self.hand) self.state = "wait" @@ -341,6 +341,6 @@ ecart.append((card.suit, card.value)) self.hand.remove(card) self.hand_wid.update(self.hand) - self.parent.host.bridge.tarotGamePlayCards(self.player_nick, self.referee, ecart, profile_key = self.parent.host.profile) + self.parent.host.bridge.tarotGamePlayCards(self.player_nick, self.referee, ecart, self.parent.host.profile) self.state = "wait" self.parent.host.removePopUp()