]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-153256: Add tk_print() methods to tkinter Canvas and Text (GH-153257)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 11 Jul 2026 05:12:52 +0000 (08:12 +0300)
committerGitHub <noreply@github.com>
Sat, 11 Jul 2026 05:12:52 +0000 (05:12 +0000)
commit45fa07b025cb38e607a8f3c6d3ade9a28ce84e34
treed418ac6bddd0805d575b627cbf335bb65b4578ae
parentbac73b0f4ea475cbfb11f41579129c9d07075c34
gh-153256: Add tk_print() methods to tkinter Canvas and Text (GH-153257)

The native print dialog (the "tk print" command, Tk 8.7/9.0+) only
supports canvas and text widgets, so expose it as a method of Canvas
and Text rather than of Misc.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Doc/library/tkinter.rst
Doc/whatsnew/3.16.rst
Lib/test/test_tkinter/test_misc.py
Lib/tkinter/__init__.py
Misc/NEWS.d/next/Library/2026-07-06-14-18-33.gh-issue-153256.tkPrnt.rst [new file with mode: 0644]