comparison frontends/sortilege_old/statusbar.py @ 587:952322b1d490

Remove trailing whitespaces.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 18 Jan 2013 17:55:34 +0100
parents 2a072735e459
children 84a6e83157c2
comparison
equal deleted inserted replaced
586:6a718ede8be1 587:952322b1d490
29 29
30 def __init__(self, parent, code="utf-8"): 30 def __init__(self, parent, code="utf-8"):
31 self.__parent=parent 31 self.__parent=parent
32 self.__code=code 32 self.__code=code
33 self.__items=set() 33 self.__items=set()
34 34
35 Window.__init__(self, self.__parent, 1, self.__parent.getmaxyx()[1], self.__parent.getmaxyx()[0]-2,0, code=code) 35 Window.__init__(self, self.__parent, 1, self.__parent.getmaxyx()[1], self.__parent.getmaxyx()[0]-2,0, code=code)
36 36
37 def __len__(self): 37 def __len__(self):
38 return len(self.__items) 38 return len(self.__items)
39 39
58 self.noutrefresh() 58 self.noutrefresh()
59 59
60 def clear_text(self): 60 def clear_text(self):
61 """Clear the text of the edit box""" 61 """Clear the text of the edit box"""
62 del(self.__items[:]) 62 del(self.__items[:])
63 63
64 def add_item(self, item): 64 def add_item(self, item):
65 self.__items.add(item) 65 self.__items.add(item)
66 self.update() 66 self.update()
67 67
68 def remove_item(self, item): 68 def remove_item(self, item):
69 if item in self.__items: 69 if item in self.__items:
70 self.__items.remove(item) 70 self.__items.remove(item)
71 self.update() 71 self.update()