Mercurial > libervia-backend
diff frontends/wix/card_game.py @ 86:4b5f2d55b6ac
wix: Tarot panel now appear on top of groupchat window when a Tarot game is started
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 11 May 2010 13:06:05 +0930 |
parents | 1ac759ea28c3 |
children | 66d784082930 |
line wrap: on
line diff
--- a/frontends/wix/card_game.py Fri May 07 17:09:30 2010 +0930 +++ b/frontends/wix/card_game.py Tue May 11 13:06:05 2010 +0930 @@ -32,6 +32,8 @@ CARD_WIDTH = 74 CARD_HEIGHT = 136 +MIN_WIDTH = 950 #Minimum size of the panel +MIN_HEIGHT = 500 class Card(): """This class is used to represent a card, graphically and logically""" @@ -59,6 +61,7 @@ def __init__(self, parent): wx.Panel.__init__(self, parent) + self.SetMinSize(wx.Size(MIN_WIDTH, MIN_HEIGHT)) self.load_cards("/home/goffi/dev/divers/images/cards/") self.selected = None #contain the card to highlight self.hand_size = 13 #number of cards in a hand