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
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,
...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
_