[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

import signal
signal.signal(signal.SIGINT, signal.SIG_DFL)

Is an improvement, but I would prefer that SIGINT triggers a
KeyboardInterrupt exception.



More information about the PyQt mailing list