I can't figure out how to handle unix signals in PyQt.

If I try to connect to the unixSignal signal of QCoreApplication,  nothing
happens.  I've noticed that the C++ examples call *watchUnixSignal*(signal_num,
true) but this isn't exposed in PyQt.

If I try to use python's standard signal handlers with PyQt I run into some
odd situations.  If I comment out the creation of the QCoreApplication the
signal is trapped and everything works.  If I  create the QCoreApplication,
it seems the signal is trapped and ignored by PyQt.

I am not even able to use SIGINT to stop the application and I'm forced to
use kill to quit the program.

How am I supposed to handle this?

-- 
Bobby R. Ward
------------------------------
[email protected]
https://launchpad.net/~bobbyrward
http://combustion.sourceforge.net
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to