comparison frontends/primitivus/contact_list.py @ 168:a2655a0a4eac

Primitivus: 2 bugs fixes - fixed bad focus when using removeWindow - UnselectAll was incomplete in contactList
author Goffi <goffi@goffi.org>
date Mon, 09 Aug 2010 22:06:56 +0800
parents 5d7a011d78ba
children 8ea1510d474b
comparison
equal deleted inserted replaced
167:6fd053c99421 168:a2655a0a4eac
117 self.__buildContact(content, self.groups[key][1]) 117 self.__buildContact(content, self.groups[key][1])
118 return urwid.ListBox(content) 118 return urwid.ListBox(content)
119 119
120 def unselectAll(self): 120 def unselectAll(self):
121 """Unselect all contacts""" 121 """Unselect all contacts"""
122 self.selected = None
122 for widget in self.frame.body.body: 123 for widget in self.frame.body.body:
123 if widget.__class__ == custom_widgets.SelectableText: 124 if widget.__class__ == custom_widgets.SelectableText:
124 widget.setState(False, invisible=True) 125 widget.setState(False, invisible=True)
125 126
126 127