comparison 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
comparison
equal deleted inserted replaced
123:34766e0cf970 124:961e0898271f
27 self.type = type 27 self.type = type
28 self.__typeSwitch() 28 self.__typeSwitch()
29 self.groups = {} #list contacts in each groups, key = group 29 self.groups = {} #list contacts in each groups, key = group
30 self.Bind(wx.EVT_LISTBOX, self.onSelected) 30 self.Bind(wx.EVT_LISTBOX, self.onSelected)
31 self.Bind(wx.EVT_LISTBOX_DCLICK, self.onActivated) 31 self.Bind(wx.EVT_LISTBOX_DCLICK, self.onActivated)
32
33 def __contains__(self, jid):
34 return bool(self.__find_idx(jid))
32 35
33 def __typeSwitch(self): 36 def __typeSwitch(self):
34 if self.type == "JID": 37 if self.type == "JID":
35 self.__presentItem = self.__presentItemJID 38 self.__presentItem = self.__presentItemJID
36 elif type != "CUSTOM": 39 elif type != "CUSTOM":