<br>System: Ubuntu 8.10, Python 2.5.2, PyQt 4.4.3<br>Book "Rapid GUI Programming with Python and Qt", example from chap13 <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><...><br>y += serifLineHeight<br>if balance < 0:<br> painter.setPen(Qt.red)<br> text = "Please remit the amount owing immediately."<br>
else:<br> text = ("We are delighted to have done business "<br> "with you.")<br>painter.drawText(x, y, text)<br>painter.setPen(Qt.red) <div id=":4m" class="ArwC7c ckChnd">
#added<br>painter.setPen(Qt.black)<br>
y += int(serifLineHeight * 1.5)<br>painter.drawText(x, y, "Transactions:")<br>y += serifLineHeight<br>option = QTextOption(Qt.AlignRight|Qt.AlignVCenter)<br>for date, amount in statement.transactions:<br><...><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: "Denis Konchekov" <<a href="mailto:dkonchekov@gmail.com">dkonchekov@gmail.com</a>><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>
<<a href="mailto:90250b090901080959m43f4f1c6l92a945b22f67f91a@mail.gmail.com">90250b090901080959m43f4f1c6l92a945b22f67f91a@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<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>