[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Fwd:  qDebug() in pyQt5
From:       Florian Bruhin <me () the-compiler ! org>
Date:       2018-09-27 15:52:31
Message-ID: 20180927155231.knzyxfy6wthvt5xs () hooch ! localdomain
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hey,

On Thu, Sep 27, 2018 at 04:08:44PM +0100, J Barchan wrote:
> I am going to make a *guess* that what you are really interested in this
> case is the ability to get that output as some symbolic Qt::blue, rather
> than qDebug() in general?  If that is so, I was recommended and use
> 
> qenum_key
> 
> which was written by Florian Bruhin of this forum.  I cannot recall/find
> the best URL, but I found it at http://python.6.x6.nabble.com/
> How-to-get-Qt-enum-class-td5067001.html.  Until Florian posts a better
> link... :)

It's here:
https://github.com/qutebrowser/qutebrowser/blob/v1.4.2/qutebrowser/utils/debug.py#L96-L132

Florian

-- 
https://www.qutebrowser.org | me@the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
         I love long mails! | https://email.is-not-s.ms/

["signature.asc" (application/pgp-signature)]
[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic