Show More
@@ -624,6 +624,7 b' class OSXKernel(TkKernel):' | |||||
624 | self.do_one_iteration() |
|
624 | self.do_one_iteration() | |
625 | # and back: |
|
625 | # and back: | |
626 | sys.excepthook = handle_int |
|
626 | sys.excepthook = handle_int | |
|
627 | ||||
627 | t = TimerMac(poll_interval) |
|
628 | t = TimerMac(poll_interval) | |
628 | t.add_callback(doi) |
|
629 | t.add_callback(doi) | |
629 | t.start() |
|
630 | t.start() | |
@@ -651,6 +652,9 b' class OSXKernel(TkKernel):' | |||||
651 | except KeyboardInterrupt: |
|
652 | except KeyboardInterrupt: | |
652 | # Ctrl-C shouldn't crash the kernel |
|
653 | # Ctrl-C shouldn't crash the kernel | |
653 | io.raw_print("KeyboardInterrupt caught in kernel") |
|
654 | io.raw_print("KeyboardInterrupt caught in kernel") | |
|
655 | finally: | |||
|
656 | # ensure excepthook is restored | |||
|
657 | sys.excepthook = real_excepthook | |||
654 |
|
658 | |||
655 |
|
659 | |||
656 | #----------------------------------------------------------------------------- |
|
660 | #----------------------------------------------------------------------------- |
General Comments 0
You need to be logged in to leave comments.
Login now