Mercurial > libervia-backend
changeset 164:5d7a011d78ba
Primitivus: contact list: new method UnselectAll
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 09 Aug 2010 19:09:43 +0800 |
parents | f582fddd0cc0 |
children | 8a2053de6f8c |
files | frontends/primitivus/contact_list.py |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/primitivus/contact_list.py Mon Aug 09 19:09:13 2010 +0800 +++ b/frontends/primitivus/contact_list.py Mon Aug 09 19:09:43 2010 +0800 @@ -117,6 +117,13 @@ self.__buildContact(content, self.groups[key][1]) return urwid.ListBox(content) + def unselectAll(self): + """Unselect all contacts""" + for widget in self.frame.body.body: + if widget.__class__ == custom_widgets.SelectableText: + widget.setState(False, invisible=True) + + def get_contact(self): """Return contact currently selected""" return self.selected