[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyKDE] handling keyboard interrupts nicely?
From: Martin Blais <blais () iro ! umontreal ! ca>
Date: 2003-01-27 2:30:47
[Download RAW message or body]
hi.
(this is my first post on this list)
i have been looking for a FAQ about this, and everywhere else, and i would
have thought that would be the first question most people would be asking
after trying PyQt: how do you handle KeyboardInterrupt's from a PyQt app?
i immediately found the most annoying thing from a PyQt app (after the
blinding flash of enlightenment :-) ) is not being able to kill my
application with a ^C in the terminal... SIGINT is masked, nothing happens
and the KeyboardInterrupt exception is raised after exiting the application
event loop.
i tried catching the signal explicitly using Python's
signal.signal(SIGINT,...), but i get the same behaviour (the handler only
gets called after the execution loop exits)
how do you do this?
cheers,
--
p.s. please Cc replies directly. thanks.
_______________________________________________
PyKDE mailing list PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic