]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-151890: Support more photo image options in tkinter.PhotoImage methods (GH-151891)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 22 Jun 2026 16:35:39 +0000 (19:35 +0300)
committerGitHub <noreply@github.com>
Mon, 22 Jun 2026 16:35:39 +0000 (16:35 +0000)
commit34eca5ac9dddbe215639e28841da1e3304973e92
treef546f9b7149947c809189964d705d0d889ee5d46
parent0bd1024f87a55a18340e06837e83713888f218a7
gh-151890: Support more photo image options in tkinter.PhotoImage methods (GH-151891)

Add parameters mapping to Tk photo image options that previously had no
tkinter equivalent:

* the format parameter of PhotoImage.put() (Tk 8.6),
* the metadata parameter of PhotoImage.put(), read(), write() and data()
  (Tk 9.0),
* the withalpha parameter of PhotoImage.get() (Tk 9.0).

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Doc/library/tkinter.rst
Doc/whatsnew/3.16.rst
Lib/test/test_tkinter/test_images.py
Lib/tkinter/__init__.py
Misc/NEWS.d/next/Library/2026-06-22-02-29-02.gh-issue-151890.gT6JwI.rst [new file with mode: 0644]