summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r--Modules/_tkinter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index e378986..ecb7ca8 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -3205,6 +3205,9 @@ PyInit__tkinter(void)
m = PyModule_Create(&_tkintermodule);
if (m == NULL)
return NULL;
+#ifdef Py_GIL_DISABLED
+ PyModule_ExperimentalSetGIL(m, Py_MOD_GIL_NOT_USED);
+#endif
Tkinter_TclError = PyErr_NewException("_tkinter.TclError", NULL, NULL);
if (PyModule_AddObjectRef(m, "TclError", Tkinter_TclError)) {