<br>System: Ubuntu 8.10, Python 2.5.2, PyQt 4.4.3<br>Book &quot;Rapid GUI Programming with Python and Qt&quot;, example from chap13&nbsp; <br>Faded cells in first table after printing to pdf (before changing pen color).<br>See screenshot in attachment or here: <a href="http://img404.imageshack.us/done.php?l=img404/1899/75073848lv9.jpg" target="_blank">http://img404.imageshack.us/done.php?l=img404/1899/75073848lv9.jpg</a><br>

Everything ok after adding yet another painter.setPen(Qt.color):<br><br>&lt;...&gt;<br>y += serifLineHeight<br>if balance &lt; 0:<br>&nbsp;&nbsp;&nbsp; painter.setPen(Qt.red)<br>&nbsp;&nbsp;&nbsp; text = &quot;Please remit the amount owing immediately.&quot;<br>

else:<br>&nbsp;&nbsp;&nbsp; text = (&quot;We are delighted to have done business &quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;with you.&quot;)<br>painter.drawText(x, y, text)<br>painter.setPen(Qt.red)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div id=":4m" class="ArwC7c ckChnd">
&nbsp;&nbsp;&nbsp;&nbsp; #added<br>painter.setPen(Qt.black)<br>
y += int(serifLineHeight * 1.5)<br>painter.drawText(x, y, &quot;Transactions:&quot;)<br>y += serifLineHeight<br>option = QTextOption(Qt.AlignRight|Qt.AlignVCenter)<br>for date, amount in statement.transactions:<br>&lt;...&gt;<br>

<br>mysticism?<br><font color="#888888"><br>Denis</font></div><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Message: 2<br>
Date: Thu, 8 Jan 2009 20:59:35 +0300<br>
From: &quot;Denis Konchekov&quot; &lt;<a href="mailto:dkonchekov@gmail.com">dkonchekov@gmail.com</a>&gt;<br>
Subject: [PyQt] QPainter bug(?) in printing.pyw example from PyQt book<br>
To: <a href="mailto:pyqt@riverbankcomputing.com">pyqt@riverbankcomputing.com</a><br>
Message-ID:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:90250b090901080959m43f4f1c6l92a945b22f67f91a@mail.gmail.com">90250b090901080959m43f4f1c6l92a945b22f67f91a@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
Skipped content of type multipart/alternative-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: 1.jpg<br>
Type: image/jpeg<br>
Size: 33943 bytes<br>
Desc: not available<br>
Url : <a href="http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090108/ca38076d/1.jpg" target="_blank">http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090108/ca38076d/1.jpg</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
PyQt mailing list<br>
<a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
<br>
End of PyQt Digest, Vol 54, Issue 10<br>
************************************<br>
</blockquote></div><br>