comparison frontends/src/wix/card_game.py @ 366:0806a65a5fa9

wix: updated paths to use media_dir
author Goffi <goffi@goffi.org>
date Sat, 18 Jun 2011 22:51:33 +0200
parents 809733b8d9be
children cf005701624b
comparison
equal deleted inserted replaced
365:efbfccfed623 366:0806a65a5fa9
59 59
60 def __init__(self, parent, referee, players, player_nick): 60 def __init__(self, parent, referee, players, player_nick):
61 QuickCardGame.__init__(self, parent, referee, players, player_nick) 61 QuickCardGame.__init__(self, parent, referee, players, player_nick)
62 wx.Panel.__init__(self, parent) 62 wx.Panel.__init__(self, parent)
63 self.SetMinSize(wx.Size(MIN_WIDTH, MIN_HEIGHT)) 63 self.SetMinSize(wx.Size(MIN_WIDTH, MIN_HEIGHT))
64 self.loadCards("images/cards/") 64 self.loadCards(os.path.join(self.parent.host.media_dir, 'games/cards/tarot'))
65 self.mouse_over_card = None #contain the card to highlight 65 self.mouse_over_card = None #contain the card to highlight
66 self.visible_size = CARD_WIDTH/2 #number of pixels visible for cards 66 self.visible_size = CARD_WIDTH/2 #number of pixels visible for cards
67 self.hand = [] 67 self.hand = []
68 self.to_show = [] 68 self.to_show = []
69 self.state = None 69 self.state = None