[PyQt] QTextEdit->print() in Python ?

Giovanni Bajo rasky at develer.com
Thu Jul 26 17:27:09 BST 2007

On 7/26/2007 5:45 PM, David Boddie wrote:
> On Thu Jul 26 12:15:51 BST 2007, kib2 wrote:
>> I don't see any way to use the new QTextEdit->print() method in Python, 
>> "print" is a Python keyword so I've tried with "print_" (like in 
>> QTextDocument) but it failed.
>> Was it implemented ?
> It looks like an interesting bug to me: the "print" method exists, but
> you can't use it because print is a keyword!
> You can get the method using getattr, and use it that way, but it's a hack.
> A quick fix for the next snapshot, Phil?

There's also a print() method in QTextDocument.
Giovanni Bajo

More information about the PyQt mailing list