diff --git a/stdlib/tkinter/__init__.pyi b/stdlib/tkinter/__init__.pyi index da9fb0b7e..fd21aaa1c 100644 --- a/stdlib/tkinter/__init__.pyi +++ b/stdlib/tkinter/__init__.pyi @@ -111,6 +111,7 @@ _TakeFocusValue = Union[int, Literal[""], Callable[[str], Optional[bool]]] # -t class EventType(str, Enum): Activate: str ButtonPress: str + Button = ButtonPress ButtonRelease: str Circulate: str CirculateRequest: str @@ -128,6 +129,7 @@ class EventType(str, Enum): GraphicsExpose: str Gravity: str KeyPress: str + Key = KeyPress KeyRelease: str Keymap: str Leave: str diff --git a/tests/stubtest_allowlists/py3_common.txt b/tests/stubtest_allowlists/py3_common.txt index 9aa246584..1fff8524e 100644 --- a/tests/stubtest_allowlists/py3_common.txt +++ b/tests/stubtest_allowlists/py3_common.txt @@ -646,8 +646,6 @@ rlcompleter.Completer.attr_matches rlcompleter.Completer.global_matches sunau.Au_read.initfp sunau.Au_write.initfp -tkinter.EventType.Button -tkinter.EventType.Key tkinter.Misc.config tkinter.font.Font.counter tkinter.simpledialog.Dialog.apply