예제 #1
0
    def on_copy_message_to_clipboard(self, action):
        pm_list = []
        for member in self.members:
            contact = self.session.contacts.safe_get(member)
            pm_list.append(Plus.msnplus_strip(contact.message))

        clipboard = QtGui.QApplication.clipboard()
        clipboard.setText(', '.join(pm_list))
예제 #2
0
    def on_copy_message_to_clipboard(self, action):
        pm_list = []
        for member in self.members:
            contact = self.session.contacts.safe_get(member)
            pm_list.append(Plus.msnplus_strip(contact.message))

        clipboard = QtGui.QApplication.clipboard()
        clipboard.setText(', '.join(pm_list))
예제 #3
0
    def __append_contact(self, contact):
        """
        appends a contact to our submenu
        """
        item = QtGui.QAction(Plus.msnplus_strip(contact.nick), self)
        pict = self.__get_contact_pixbuf_or_default(contact.picture)
        item.setIcon(QtGui.QIcon(pict))
        self.item_to_contacts[item] = contact
        self.contacts_to_item[contact.account] = item

        self.addAction(item)
예제 #4
0
파일: TrayMenus.py 프로젝트: AmiZya/emesene
    def __append_contact(self, contact):
        """
        appends a contact to our submenu
        """
        item = QtGui.QAction(Plus.msnplus_strip(contact.nick), self)
        pict = self.__get_contact_pixbuf_or_default(contact.picture)
        item.setIcon(QtGui.QIcon(pict))
        self.item_to_contacts[item] = contact
        self.contacts_to_item[contact.account] = item

        self.addAction(item)
예제 #5
0
 def strip_nick(contact1, contact2):
     return cmp(
         Plus.msnplus_strip(contact1.nick).lower(),
         Plus.msnplus_strip(contact2.nick).lower())
예제 #6
0
 def strip_nick(contact1, contact2):
     return cmp(Plus.msnplus_strip(contact1.nick).lower(),
                Plus.msnplus_strip(contact2.nick).lower())