[PyQt] Any way to run code before each QThread?

Florian Bruhin me at the-compiler.org
Sun Jul 15 17:06:13 BST 2018


On Sun, Jul 15, 2018 at 05:57:29PM +0200, Tobias Rzepka wrote:
> Have a look into the Eric debugger. I've already implemented a solution to intercept the QThread creation and to inject code to trace the excecution.

That seemes to be here:
http://die-offenbachs.homelinux.org:48888/hg/eric/file/87b1626eb49b/DebugClients/Python/ThreadExtension.py#l361
and just patches the QThread class.

Not sure if that's possible for coverage to do (as it doesn't implement
its own module loading hook, afaik). It definitely gets the
"hacky^H^H^H^H^Hcreative idea" badge, though :D

Florian

-- 
https://www.qutebrowser.org | me at 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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180715/32f93241/attachment.sig>


More information about the PyQt mailing list