Commit 6b57a35
committed
gh-150836: Mount embedded Tk ZIP in _tkinter on Windows
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.1 parent c2ca772 commit 6b57a35
4 files changed
Lines changed: 43 additions & 3 deletions
File tree
- Misc/NEWS.d/next/Windows
- Modules
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
175 | 179 | | |
176 | 180 | | |
177 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
178 | 215 | | |
179 | 216 | | |
180 | 217 | | |
| |||
544 | 581 | | |
545 | 582 | | |
546 | 583 | | |
547 | | - | |
| 584 | + | |
548 | 585 | | |
549 | 586 | | |
550 | 587 | | |
| |||
2988 | 3025 | | |
2989 | 3026 | | |
2990 | 3027 | | |
2991 | | - | |
| 3028 | + | |
2992 | 3029 | | |
2993 | 3030 | | |
2994 | 3031 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
0 commit comments