diff frontends/sortilege_old/sortilege @ 587:952322b1d490

Remove trailing whitespaces.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 18 Jan 2013 17:55:34 +0100
parents 2a072735e459
children f7878ad3c846
line wrap: on
line diff
--- a/frontends/sortilege_old/sortilege	Fri Jan 18 17:55:27 2013 +0100
+++ b/frontends/sortilege_old/sortilege	Fri Jan 18 17:55:34 2013 +0100
@@ -39,7 +39,7 @@
 import time
 from curses import ascii
 import locale
-from signal import signal, SIGWINCH 
+from signal import signal, SIGWINCH
 import fcntl
 import struct
 import termios
@@ -68,7 +68,7 @@
 
 class ChatList(QuickChatList):
     """This class manage the list of chat windows"""
-    
+
     def __init__(self, host):
         QuickChatList.__init__(self, host)
         self.sizer=host.sizer
@@ -77,10 +77,10 @@
         chat = Chat(name, self.host)
         self.sizer.appendColum(0,chat)
         self.sizer.update()
-        return chat 
-        
+        return chat
+
 class ContactList(Window, QuickContactList):
-    
+
     def __init__(self, host, CM):
         QuickContactList.__init__(self, CM)
         self.host = host
@@ -97,7 +97,7 @@
         Must be called when stdscr is resized."""
         self.resize(stdscr.getmaxyx()[0]-2,const_CONTACT_WIDTH,0,0)
         self.update()
-        
+
     def registerEnterCB(self, CB):
         self.__enterCB=CB
 
@@ -118,7 +118,7 @@
         if self.__index < len(self.jid_list)-1:  #we dont want to select a missing contact
             self.__index = self.__index + 1
         self.update()
-    
+
     def indexDown(self):
         """decrement select contact index"""
         if self.__index > 0:
@@ -142,7 +142,7 @@
             return
         Window.update(self)
         self.jid_list.sort()
-        begin=0 if self.__index<self.rHeight else self.__index-self.rHeight+1 
+        begin=0 if self.__index<self.rHeight else self.__index-self.rHeight+1
         idx=0
         for item in self.jid_list[begin:self.rHeight+begin]:
             attr = curses.A_REVERSE if ( self.isActive() and (idx+begin) == self.__index ) else 0
@@ -164,9 +164,9 @@
                 self.__enterCB(self.jid_list[self.__index])
             except NameError:
                 pass # TODO: thrown an error here
-            
+
 class SortilegeApp(QuickApp):
-    
+
     def __init__(self):
         #debug(const_APP_NAME+" init...")
 
@@ -245,7 +245,7 @@
             debug (_("Deactivating colors"))
             curses.init_pair(1, curses.COLOR_WHITE, curses.COLOR_BLACK)
             curses.init_pair(2, curses.COLOR_WHITE, curses.COLOR_BLACK)
-            
+
 
     def showChat(self, chat):
         debug (_("show chat"))
@@ -256,7 +256,7 @@
         debug (_("showing %s"), self.currentChat)
         self.chat_wins[self.currentChat].show()
         self.chat_wins[self.currentChat].update()
-        
+
 
     ### EVENTS ###
 
@@ -302,7 +302,7 @@
         if (self.currentChat==None):
             self.currentChat=win.short
             self.showChat(win.short)
-            
+
         # we show the window in the status bar
         if not self.currentChat == win.short:
             self.statusBar.add_item(win.short)
@@ -319,7 +319,7 @@
         height, width = ttysize()
         curses.resizeterm(height, width)
         gobject.idle_add(self.callOnceLoop)
-    
+
     def callOnceLoop(self):
         """Call the loop and return false (for not being called again by gobject mainloop).
         Usefull for calling loop when there is no input in stdin"""
@@ -351,7 +351,7 @@
                     self.editBar.activate(True)
             self.sizer.update()
 
-        ## Chat Params ##    
+        ## Chat Params ##
         elif k == C('c'):
             self.chatParams["color"] = not self.chatParams["color"]
             self.color(self.chatParams["color"])
@@ -376,7 +376,7 @@
                 self.sizer.update() # FIXME: everything need to be managed by the sizer
 
         ## we now throw the key to win handlers ##
-        else: 
+        else:
             for win in self.listWins:
                 if win.isActive():
                     win.handleKey(k)
@@ -391,7 +391,7 @@
             self.__key_handling(pressed)
             self.editBar.replace_cur()
             curses.doupdate()
-            
+
 
         return True