Skip to content

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

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-c4eb3ad-3.15
Open

[3.15] gh-150836: Mount embedded Tk ZIP in _tkinter on Windows (GH-151562)#151735
miss-islington wants to merge 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 c4eb3adbb42d781e2ad35bee5621f1c621c6767b)

Co-authored-by: Jonathan J. Helmus <jjhelmus@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants