Mercurial > libervia-backend
diff frontends/wix/contact_list.py @ 124:961e0898271f
primitivus chat window
- management of one 2 one / group chat
- timestamp displayed
- added shortcuts for showing/hiding panels
- color used
- fixed vcard bug (contact displayed even if not from current profile if vcard changed/not in cache)
- added VerticalSeparator widget
- *List widgets can now use an other widget than SelectableText
- new UnselectableText widget
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 08 Jul 2010 19:47:54 +0800 |
parents | 7322a41f8a8e |
children | 8d611eb9ae48 |
line wrap: on
line diff
--- a/frontends/wix/contact_list.py Thu Jul 08 18:29:44 2010 +0800 +++ b/frontends/wix/contact_list.py Thu Jul 08 19:47:54 2010 +0800 @@ -29,6 +29,9 @@ self.groups = {} #list contacts in each groups, key = group self.Bind(wx.EVT_LISTBOX, self.onSelected) self.Bind(wx.EVT_LISTBOX_DCLICK, self.onActivated) + + def __contains__(self, jid): + return bool(self.__find_idx(jid)) def __typeSwitch(self): if self.type == "JID":