]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-150836: Mount embedded Tk ZIP in _tkinter on Windows (GH-151562)
authorJonathan J. Helmus <jjhelmus@gmail.com>
Fri, 19 Jun 2026 14:23:01 +0000 (09:23 -0500)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2026 14:23:01 +0000 (14:23 +0000)
commitc4eb3adbb42d781e2ad35bee5621f1c621c6767b
tree83d102e9323da2d5fccab4e01e1939045a77f1f8
parent64fab74bd7288bfa67cd7727452febdaafed4270
gh-150836: Mount embedded Tk ZIP in _tkinter on Windows (GH-151562)

Tcl/Tk 9 may embed the Tk script library in the Tk DLL on Windows. This embedded library is not found by Tcl by default.

Mount the loaded Tk DLL as a zipfs archive before calling Tk_Init(), so Tk can find its embedded tk_library using its existing library discovery logic.

Preserve Tk_Init()'s normal path if the library is not embedded.
Misc/NEWS.d/next/Windows/2026-06-04-18-53-18.gh-issue-150836.Wci7bZ.rst [new file with mode: 0644]
Modules/_tkinter.c
Modules/tkappinit.c
Modules/tkinter.h