From 44f71867c70fb8c0faa26f9ebb393099c29ae94c Mon Sep 17 00:00:00 2001 From: Akuli Date: Tue, 7 Dec 2021 15:10:39 +0200 Subject: [PATCH] add tkinter.EventType aliases (#6516) --- stdlib/tkinter/__init__.pyi | 2 ++ tests/stubtest_allowlists/py3_common.txt | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) 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