def load_list(self, mails):
""" Load notes and display them in the list
:param list mails: Preselected mails
"""
for note in api.notes.get():
widget = QtWidgets.QTreeWidgetItem(self.mail_list, (
note['nickname'],
note['mail'],
note['firstname'],
note['lastname']
))
if note['mail'] in mails:
widget.setSelected(True)
评论列表
文章目录