diff frontends/src/primitivus/card_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 c123dddaea6b
line wrap: on
line diff
--- a/frontends/src/primitivus/card_game.py	Fri Jan 18 17:55:27 2013 +0100
+++ b/frontends/src/primitivus/card_game.py	Fri Jan 18 17:55:34 2013 +0100
@@ -48,9 +48,9 @@
             self.select(not self.__selected)
             self._emit('click')
             return True
-        
+
         return False
-    
+
     def select(self, state=True):
         self.__selected = state
         attr,txt = self.card.getAttrText()
@@ -183,7 +183,7 @@
             self.top = self.left = self.bottom = self.right = None
         setattr(self, location, card)
         self._invalidate()
-    
+
     def rows(self,size,focus=False):
         return self.display_widget(size, focus).rows(size, focus)
 
@@ -203,11 +203,11 @@
                       urwid.Text([margin_center,cards['left'],separator,cards['right']]),
                       urwid.Text([margin,cards['bottom']])]
         return urwid.Pile(render_wid)
-        
+
 
 class CardGame(QuickCardGame,urwid.WidgetWrap):
     """Widget for card games"""
-    
+
     def __init__(self, parent, referee, players, player_nick):
         QuickCardGame.__init__(self, parent, referee, players, player_nick)
         self.loadCards()
@@ -248,13 +248,13 @@
         QuickCardGame.newGame(self, hand)
         self.hand_wid.update(self.hand)
         self.parent.host.redraw()
-    
+
     def contratSelected(self, data):
         """Called when the contrat has been choosed
         @param data: form result"""
         contrat = data[0][1]
         QuickCardGame.contratSelected(self, contrat)
-    
+
     def chooseContrat(self, xml_data):
         """Called when the player as to select his contrat
         @param xml_data: SàT xml representation of the form"""
@@ -297,14 +297,14 @@
         if self._autoplay==None: #No dialog if there is autoplay
             self.parent.host.notify(_('Cards played are invalid !'))
         self.parent.host.redraw()
-    
+
     def cardsPlayed(self, player, cards):
         """A card has been played by player"""
         QuickCardGame.cardsPlayed(self, player, cards)
         self.table.putCard(self.getPlayerLocation(player),self.played[player])
         self._checkState()
         self.parent.host.redraw()
-   
+
     def _checkState(self):
         if isinstance(self.center.widget_list[1].original_widget, Hand): #if we have a hand displayed
             self.center.widget_list[1] = urwid.Filler(self.table) #we show again the table
@@ -317,7 +317,7 @@
                 self.hand.sort()
                 self.to_show = []
                 self.hand_wid.update(self.hand)
-        
+
 
     ##EVENTS##
     def onClick(self, hand, card_wid):