[PyKDE] PyQt4 & KeyboardInterrupt
Kelly Burkhart
kelly.burkhart at gmail.com
Fri Dec 22 14:32:36 GMT 2006
This seems like it should be a FAQ, but I can't find it anywhere...
How do I enable proper KeyboardInterrupt handling from within a PyQt4
application? Is there some way I can prevent PyQt from intercepting
SIGINT?
import signal
...
signal.signal(signal.SIGINT, signal.SIG_DFL)
Is an improvement, but I would prefer that SIGINT triggers a
KeyboardInterrupt exception.
Thanks,
-K
More information about the PyQt
mailing list