[PyQt] Printing in PyQt

primalcharlie charlie.hardy at outlook.com
Sat Feb 21 16:21:31 GMT 2015


michael h wrote
>>
>>
>> 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
> 
> _______________________________________________
> PyQt mailing list    

> PyQt@

> http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Hi michael that solved that one now im getting a error saying that 
QPainter::begin: A paint device can only be painted by one painter at a
time.




--
View this message in context: http://python.6.x6.nabble.com/Printing-in-PyQt-tp5086981p5087048.html
Sent from the PyQt mailing list archive at Nabble.com.


More information about the PyQt mailing list