Skip to content

gh-150836: Mount embedded Tk ZIP in _tkinter on Windows#151562

Open
jjhelmus wants to merge 1 commit into
python:mainfrom
jjhelmus:jjh/mount_tk_dll
Open

gh-150836: Mount embedded Tk ZIP in _tkinter on Windows#151562
jjhelmus wants to merge 1 commit into
python:mainfrom
jjhelmus:jjh/mount_tk_dll

Conversation

@jjhelmus

@jjhelmus jjhelmus commented Jun 16, 2026

Copy link
Copy Markdown

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.

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.
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.

1 participant