diff browser_side/panels.py @ 285:4f0c2fea358a

browser_side (plugin radiocol): use the status label to give more information
author souliane <souliane@mailoo.org>
date Tue, 26 Nov 2013 19:51:02 +0100
parents ae3ec654836d
children 20a9aedc60b5
line wrap: on
line diff
--- a/browser_side/panels.py	Mon Nov 25 21:04:09 2013 +0100
+++ b/browser_side/panels.py	Tue Nov 26 19:51:02 2013 +0100
@@ -1029,7 +1029,7 @@
         self.content.add(ChatText(timestamp, nick, mymess, msg, extra.get('xhtml')))
         self.content_scroll.scrollToBottom()
 
-    def startGame(self, game_type, referee, players, waiting=False):
+    def startGame(self, game_type, waiting, referee, players, *args):
         """Configure the chat window to start a game"""
         classes = {"Tarot": CardPanel, "RadioCol": RadioColPanel}
         if game_type not in classes.keys():
@@ -1042,7 +1042,7 @@
         if hasattr(self, attr):
             return
         print ("%s Game Started \o/" % game_type)
-        panel = classes[game_type](self, referee, self.nick, players)
+        panel = classes[game_type](self, referee, self.nick, players, *args)
         setattr(self, attr, panel)
         self.vpanel.insert(panel, 0)
         self.vpanel.setCellHeight(panel, panel.getHeight())