Commit 65f5e58
authored
Callbacks registered in the tkinter module now take arguments as various Python objects (int, float, bytes, tuple), not just str. To restore the previous behavior set tkinter module global wantobject to 1 before creating the Tk object or call the wantobject() method of the Tk object with argument 1. Calling it with argument 2 restores the current default behavior.
1 parent b60d4c0 commit 65f5e58
File tree
7 files changed
+60
-25
lines changed- Doc/whatsnew
- Lib
- idlelib
- test
- tkinter
- Misc/NEWS.d/next/Library
- Modules
- clinic
7 files changed
+60
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1859 | 1859 | | |
1860 | 1860 | | |
1861 | 1861 | | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
1862 | 1872 | | |
1863 | 1873 | | |
1864 | 1874 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
486 | | - | |
487 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
488 | 495 | | |
489 | 496 | | |
490 | 497 | | |
491 | | - | |
| 498 | + | |
492 | 499 | | |
493 | | - | |
| 500 | + | |
494 | 501 | | |
495 | 502 | | |
496 | 503 | | |
497 | 504 | | |
498 | 505 | | |
499 | | - | |
500 | | - | |
| 506 | + | |
| 507 | + | |
501 | 508 | | |
502 | 509 | | |
503 | 510 | | |
504 | 511 | | |
505 | 512 | | |
506 | | - | |
507 | | - | |
| 513 | + | |
| 514 | + | |
508 | 515 | | |
509 | 516 | | |
510 | 517 | | |
| |||
526 | 533 | | |
527 | 534 | | |
528 | 535 | | |
529 | | - | |
530 | | - | |
531 | | - | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
532 | 543 | | |
533 | 544 | | |
534 | 545 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
1762 | 1762 | | |
1763 | 1763 | | |
1764 | 1764 | | |
1765 | | - | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
1766 | 1769 | | |
1767 | 1770 | | |
1768 | 1771 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2248 | 2248 | | |
2249 | 2249 | | |
2250 | 2250 | | |
2251 | | - | |
| 2251 | + | |
2252 | 2252 | | |
2253 | 2253 | | |
2254 | 2254 | | |
| |||
2272 | 2272 | | |
2273 | 2273 | | |
2274 | 2274 | | |
| 2275 | + | |
2275 | 2276 | | |
2276 | 2277 | | |
2277 | 2278 | | |
| |||
2280 | 2281 | | |
2281 | 2282 | | |
2282 | 2283 | | |
2283 | | - | |
| 2284 | + | |
| 2285 | + | |
2284 | 2286 | | |
2285 | 2287 | | |
2286 | 2288 | | |
| |||
2383 | 2385 | | |
2384 | 2386 | | |
2385 | 2387 | | |
2386 | | - | |
| 2388 | + | |
| 2389 | + | |
2387 | 2390 | | |
2388 | 2391 | | |
2389 | 2392 | | |
| |||
2897 | 2900 | | |
2898 | 2901 | | |
2899 | 2902 | | |
2900 | | - | |
| 2903 | + | |
2901 | 2904 | | |
2902 | 2905 | | |
2903 | | - | |
| 2906 | + | |
2904 | 2907 | | |
2905 | 2908 | | |
2906 | 2909 | | |
| |||
3086 | 3089 | | |
3087 | 3090 | | |
3088 | 3091 | | |
3089 | | - | |
| 3092 | + | |
3090 | 3093 | | |
3091 | 3094 | | |
3092 | 3095 | | |
| |||
3102 | 3105 | | |
3103 | 3106 | | |
3104 | 3107 | | |
3105 | | - | |
| 3108 | + | |
3106 | 3109 | | |
3107 | 3110 | | |
3108 | 3111 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments