nko
04-27-2004, 03:41 PM
I've got a label in a pyqt program I'm tinkering with, and I'm trying to print it out to the console. So, here's what I'm doing:
words=label.text
print words
The print statement spits this on to the command line:
<built-in method text of timeLabel object at 0x403ed5cc>
I think I know what the problem is; in Qt, that text is of type QString. But how in the wide-world of PyQt do I *use* that QString as regular text?
words=label.text
print words
The print statement spits this on to the command line:
<built-in method text of timeLabel object at 0x403ed5cc>
I think I know what the problem is; in Qt, that text is of type QString. But how in the wide-world of PyQt do I *use* that QString as regular text?