[PyQt] Big Trouble in Little QListWidget

James Polk jpolk5001 at yahoo.com
Tue Mar 8 00:16:41 GMT 2011


Somebody please put me out of my misery!...

Just a simple little QListWidget...

      temp1 = self.ScenesListView.currentItem()
      print temp1

returns

       <PyQt4.QtGui.QListWidgetItem object at 0x00000000025089C8>

and
        print temp1.text()
returns
       AttributeError: 'NoneType' object has no attribute 'text'

sheesh...is it me?...or is this plain nuts?...shouldn't be this hard to simply
query a list 

I would most graciously appreciate it if someone could clue me in,...
Thanks,




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110307/48253025/attachment.html>


More information about the PyQt mailing list