[PyQt] Printing in PyQt
michael h
michaelkenth at gmail.com
Sat Feb 21 16:20:22 GMT 2015
>
>
> Thanks
> Charlie
>
> btw current error im getting is:
> painter.translate((printer.paperRect().x()) +
> (printer.pageRect().width()/2),(printer.paperRect().y) +
> (printer.pageRect().height()/2))
> TypeError: unsupported operand type(s) for +: 'builtin_function_or_method'
> and 'float'
>
>
(printer.paperRect().y)
That last bit should be .y() , like you have for x()
- mh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150221/e5f3db5c/attachment.html>
More information about the PyQt
mailing list