Mercurial > libervia-backend
comparison frontends/src/wix/chat.py @ 321:1a990a88bff2
wix: force updating of splitterWindow in ChatWindow (needed when Tarot game is launched)
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 08 May 2011 17:09:03 +0200 |
parents | a00e87d48213 |
children | 141eeb7cd9e6 |
comparison
equal
deleted
inserted
replaced
320:5fc5e6a7e5c3 | 321:1a990a88bff2 |
---|---|
115 debug (_("configure chat window for Tarot game")) | 115 debug (_("configure chat window for Tarot game")) |
116 self.tarot_panel = CardPanel(self, referee, players, self.nick) | 116 self.tarot_panel = CardPanel(self, referee, players, self.nick) |
117 self.sizer.Prepend(self.tarot_panel, 0, flag=wx.EXPAND) | 117 self.sizer.Prepend(self.tarot_panel, 0, flag=wx.EXPAND) |
118 self.sizer.Layout() | 118 self.sizer.Layout() |
119 self.Fit() | 119 self.Fit() |
120 self.splitter.UpdateSize() | |
120 | 121 |
121 def getGame(self, game_type): | 122 def getGame(self, game_type): |
122 """Return class managing the game type""" | 123 """Return class managing the game type""" |
123 #TODO: check that the game is launched, and manage errors | 124 #TODO: check that the game is launched, and manage errors |
124 if game_type=="Tarot": | 125 if game_type=="Tarot": |