[PyQt] Big Trouble in Little QListWidget

2011-03-07 Thread James Polk
Somebody please put me out of my misery!... Just a simple little QListWidget...   temp1 = self.ScenesListView.currentItem()   print temp1 returns    and     print temp1.text() returns    AttributeError: 'NoneType' object has no attribute 'text' sheesh...is it me?...or is

Re: [PyQt] Big Trouble in Little QListWidget

2011-03-07 Thread Hans-Peter Jansen
On Tuesday 08 March 2011, 01:16:41 James Polk wrote: > Somebody please put me out of my misery!... > > Just a simple little QListWidget... > >   temp1 = self.ScenesListView.currentItem() >   print temp1 > > returns > >    Hmm, you surely know, that .currentItem() _might_ return None,

[PyQt] [Re] Big Trouble in Little QListView

2011-03-07 Thread James Polk
...lol,...seems like every time I send an email to you guys, about 5 minutes later, I find the answer,...lol What's working for me... row = self.ScenesListView.currentRow() item = self.ScenesListView.item(row) if item is not None:     print unicode(item.text()) Dankashein _