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

David Boddie david at boddie.org.uk
Thu Jul 26 16:45:47 BST 2007


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?

David


More information about the PyQt mailing list