Пример #1
0
 def showwlist(self):
     """导出白名单"""
     wlist = getxml("./listxml/whitelist.xml", "mail")
     row = 0
     for mail in wlist:
         self.whiteList.insertRow(row)
         newItem = QTableWidgetItem(mail)
         self.whiteList.setItem(row, 0, newItem)
         row += 1
Пример #2
0
 def showblist(self):
     """导出黑名单"""
     blist = getxml("./listxml/blacklist.xml", "mail")
     row = 0
     for mail in blist:
         self.blackList.insertRow(row)
         newItem = QTableWidgetItem(mail)
         self.blackList.setItem(row, 0, newItem)
         row += 1