diff --git a/Misc/NEWS b/Misc/NEWS index f1a14101917..d62e695fa2c 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -13,6 +13,8 @@ Core and Builtins Library ------- +- Issue #20204: Added the __module__ attribute to _tkinter classes. + - Issue #19980: Improved help() for non-recognized strings. help('') now shows the help on str. help('help') now shows the help on help(). Original patch by Mark Lawrence. diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index b23ee8a6651..52069ec8b9e 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -2409,7 +2409,7 @@ static PyType_Slot Tktt_Type_slots[] = { }; static PyType_Spec Tktt_Type_spec = { - "tktimertoken", + "_tkinter.tktimertoken", sizeof(TkttObject), 0, Py_TPFLAGS_DEFAULT, @@ -2713,7 +2713,7 @@ static PyType_Slot Tkapp_Type_slots[] = { static PyType_Spec Tkapp_Type_spec = { - "tkapp", + "_tkinter.tkapp", sizeof(TkappObject), 0, Py_TPFLAGS_DEFAULT,