Skip to content

[3.15] gh-150836: Mount embedded Tk ZIP in _tkinter on Windows (GH-151562) - #151735

Merged
zware merged 1 commit into
python:3.15from
miss-islington:backport-c4eb3ad-3.15
Jun 19, 2026
Merged

zware merged 1 commit into
python:3.15from
miss-islington:backport-c4eb3ad-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Jun 19, 2026 •

Copy link
Copy Markdown
Contributor

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.
(cherry picked from commit c4eb3ad)

Co-authored-by: Jonathan J. Helmus jjhelmus@gmail.com

…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.
(cherry picked from commit c4eb3ad)

Co-authored-by: Jonathan J. Helmus <jjhelmus@gmail.com>
@zware
zware merged commit b83a217 into python:3.15 Jun 19, 2026
50 checks passed
@miss-islington
miss-islington deleted the backport-c4eb3ad-3.15 branch June 19, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants