Mercurial > libervia-web
diff browser_side/card_game.py @ 77:975e6be24e11
media paths update
media now use global media location, obtained throught getConfig('', 'media_dir')
Tarot cards have been removed as they are now shared in this location
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 19 Jun 2011 00:48:43 +0200 |
parents | 9d8e79ac4c9c |
children | ddfcc4cb6cee |
line wrap: on
line diff
--- a/browser_side/card_game.py Sat Jun 18 15:47:21 2011 +0200 +++ b/browser_side/card_game.py Sun Jun 19 00:48:43 2011 +0200 @@ -215,12 +215,14 @@ self.addClickListener(self) - def loadCards(self, dir): - """Load all the cards in memory - @param dir: directory where the PNG files are""" + def loadCards(self): + """Load all the cards in memory""" def _getTarotCardsPathsCb(paths): + print "_getTarotCardsPathsCb" for file in paths: + print "path:", file card = CardWidget(self, file) + print "card:", card self.cards[(card.suit, card.value)]=card self.deck.append(card) self._parent.host.bridge.call('tarotGameReady', None, self.player_nick, self.referee)