diff frontends/src/wix/quiz_game.py @ 587:952322b1d490

Remove trailing whitespaces.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 18 Jan 2013 17:55:34 +0100
parents ca13633d3b6b
children beaf6bec2fcd
line wrap: on
line diff
--- a/frontends/src/wix/quiz_game.py	Fri Jan 18 17:55:27 2013 +0100
+++ b/frontends/src/wix/quiz_game.py	Fri Jan 18 17:55:34 2013 +0100
@@ -49,17 +49,17 @@
 
     def __cmp__(self, other):
         return self.zindex.__cmp__(other.zindex)
-    
+
     def draw(self, dc, x=None, y=None):
         """Draw the card on the device context
         @param dc: device context
-        @param x: abscissa 
+        @param x: abscissa
         @param y: ordinate"""
         dc.DrawBitmap(self.bitmap, x or self.x, y or self.y, self.transparent)
 
 class BaseWindow(wx.Window):
     """This is the panel where the game is drawed, under the other widgets"""
-    
+
     def __init__(self, parent):
         wx.Window.__init__(self, parent, pos=(0,0), size=(WIDTH, HEIGHT))
         self.parent = parent
@@ -98,7 +98,7 @@
         for i in range(4):
             answer = self.parent.players_data[i]["answer"]
             score = self.parent.players_data[i]["score"]
-            if answer == None:    
+            if answer == None:
                 device_context.DrawText("%d" % score, 100 + i*184, 355)
             else:
                 device_context.DrawBitmap(self.right_image if answer else self.wrong_image, 39+i*184, 348, True)
@@ -118,14 +118,14 @@
             if left:
                 #we now draw the timer
                 angle = ((-2*pi)*((total-left)/total) + (pi/2))
-                x = center_x + radius * cos(angle) 
+                x = center_x + radius * cos(angle)
                 y = center_y - radius * sin(angle)
                 device_context.DrawArc(center_x, center_y-radius, x, y, center_x, center_y)
 
     def onPaint(self, event):
         dc = wx.PaintDC(self)
         self.fullPaint(dc)
-       
+
 
 
 class QuizPanel(wx.Panel):
@@ -156,7 +156,7 @@
         self.answer.Bind(wx.EVT_TEXT_ENTER, self.answered)
         self.parent.host.bridge.quizGameReady(player_nick, referee, profile_key = self.parent.host.profile)
         self.state = None
-    
+
     def answered(self, event):
         """Called when the player gave an answer in the box"""
         self.last_answer = self.answer.GetValue()
@@ -184,7 +184,7 @@
         self.time_limit = self.time_origin + timer
         self.time_pause = None
         self.__timer_refresh()
-        
+
     def __timer_refresh(self):
         self.Refresh()
         if self.time_left:
@@ -203,14 +203,14 @@
         self.startTimer(timer)
         self.last_answer = None
         self.answer.Clear()
-    
+
     def quizGamePlayerBuzzed(self, player, pause):
         """Called when the player pushed the buzzer
         @param player: player who pushed the buzzer
         @param pause: should we stop the timer ?"""
         if pause:
             self.time_pause = time()
-    
+
     def quizGamePlayerSays(self, player, text, delay):
         """Called when the player says something
         @param player: who is talking