<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">J Barchan</b> <span dir="ltr"><<a href="mailto:jnbarchan@gmail.com">jnbarchan@gmail.com</a>></span><br>Date: 27 September 2018 at 16:08<br>Subject: Re: [PyQt] qDebug() in pyQt5<br>To: Christopher Probst <<a href="mailto:christop.probst@gmail.com">christop.probst@gmail.com</a>><br><br><br><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On 27 September 2018 at 15:35, Christopher Probst <span dir="ltr"><<a href="mailto:christop.probst@gmail.com" target="_blank">christop.probst@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br>What is the best way to mimic qDebug()'s behavior in pyqt?</div><div><br></div><div>What is the python equivalent of this C++ code?</div><div>QColor aColor = <span class="gmail_default" style="font-family:tahoma,sans-serif"></span>Qt::blue;</div><div>qDebug() <<
aColor;</div><div><br></div><div>Thanks,</div><div>Christopher </div></div>
<br></div></div>______________________________<wbr>_________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank">https://www.riverbankcomputing<wbr>.com/mailman/listinfo/pyqt</a><br></blockquote></div><br><div style="font-family:tahoma,sans-serif">I am going to make a <i>guess</i> that what you are really interested in this case is the ability to get that output as some symbolic <span class="gmail_default"></span><span style="font-family:monospace,monospace">Qt::blue</span>, rather than <span style="font-family:monospace,monospace">qDebug()</span> in general? If that is so, I was recommended and use <pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"DejaVu Sans Mono";font-size:9pt">qenum_key</pre></div><div style="font-family:tahoma,sans-serif">which was written by Florian Bruhin of this forum. I cannot recall/find the best URL, but I found it at <a href="http://python.6.x6.nabble.com/How-to-get-Qt-enum-class-td5067001.html" target="_blank">http://python.6.x6.nabble.com/<wbr>How-to-get-Qt-enum-class-<wbr>td5067001.html</a>. Until Florian posts a better link... :)<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><br clear="all"><br>-- <br><div class="m_467752345724063320gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-family:tahoma,sans-serif">Kindest,</span></div><div><span style="font-family:tahoma,sans-serif">Jonathan</span></div></div></div></div></div>
</font></span></div></div></div>
</div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-family:tahoma,sans-serif">Kindest,</span></div><div><span style="font-family:tahoma,sans-serif">Jonathan</span></div></div></div></div></div>
</div>