mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-23 04:11:28 +08:00
Delete tkinter._ExceptionReportingCallback (#10689)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
14
test_cases/stdlib/check_tkinter.py
Normal file
14
test_cases/stdlib/check_tkinter.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import tkinter
|
||||
import traceback
|
||||
import types
|
||||
|
||||
|
||||
def custom_handler(exc: type[BaseException], val: BaseException, tb: types.TracebackType | None) -> None:
|
||||
print("oh no")
|
||||
|
||||
|
||||
root = tkinter.Tk()
|
||||
root.report_callback_exception = traceback.print_exception
|
||||
root.report_callback_exception = custom_handler
|
||||
Reference in New Issue
Block a user