[PyQt] Add Unix signal handler class to PyQt

Florian Bruhin me at the-compiler.org
Tue Aug 2 07:11:22 BST 2016


* Kovid Goyal <kovid at kovidgoyal.net> [2016-08-02 07:19:28 +0530]:
> Hi Phil,
> 
> Could you please add a class to PyQt to enable handling of Unix signals
> inside the Qt event loop. 
> 
> The theory for it is here: https://github.com/sijk/qt-unix-signals
> 
> A class based on that theory (MIT licensed) is here: https://github.com/sijk/qt-unix-signals
> 
> I can of course add this class to my own projects, but then it makes the
> project no longer pure python.

FWIW I implemented something similar in Python, and it's relatively
straight-forward:

https://github.com/The-Compiler/qutebrowser/blob/v0.8.1/qutebrowser/misc/crashsignal.py#L272-L398

> It would be very useful to have this capability in PyQt out of the box.

I can see where you're coming from, but I think PyQt should wrap Qt
and not random third-party projects ;)

Florian

-- 
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160802/a844e5af/attachment.sig>


More information about the PyQt mailing list