Report callback exception on sys.stderr. Applications may want to override this internal function, and should when sys.stderr is None.
(self, exc, val, tb)
| 2531 | exec(open(base_py).read(), dir) |
| 2532 | |
| 2533 | def report_callback_exception(self, exc, val, tb): |
| 2534 | """Report callback exception on sys.stderr. |
| 2535 | |
| 2536 | Applications may want to override this internal function, and |
| 2537 | should when sys.stderr is None.""" |
| 2538 | import traceback |
| 2539 | print("Exception in Tkinter callback", file=sys.stderr) |
| 2540 | sys.last_exc = val |
| 2541 | sys.last_type = exc |
| 2542 | sys.last_value = val |
| 2543 | sys.last_traceback = tb |
| 2544 | traceback.print_exception(exc, val, tb) |
| 2545 | |
| 2546 | def __getattr__(self, attr): |
| 2547 | "Delegate attribute access to the interpreter object" |
no test coverage detected