码迷,mamicode.com
首页 > 其他好文 > 详细

pyqt搜索指定信息 github处找到,谢谢这位朋友的帮助了

时间:2015-12-01 14:46:53      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:

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)

 

pyqt搜索指定信息 github处找到,谢谢这位朋友的帮助了

标签:

原文地址:http://www.cnblogs.com/mhxy13867806343/p/5009787.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!