def tabunqi(self,text):
#第一遍添加之后,不提示,当第二次添加相同的数据时,就提示下
text1=str(text)
items = self.downwidget.findItems(
text1, QtCore.Qt.MatchExactly)
if items:
results = '\n'.join(
'row %d column %d' % (item.row()+1 , item.column()+1 )
for item in items)
else:
results = 'Found Nothing'
QtGui.QMessageBox.information(self, 'Search Results', results)