]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-118271: Support more options for reading/writing images in Tkinter (GH-118273)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 6 May 2024 15:06:06 +0000 (18:06 +0300)
committerGitHub <noreply@github.com>
Mon, 6 May 2024 15:06:06 +0000 (15:06 +0000)
commit709ca90a00e66cea432096a7ba61aa6459d2a9a7
tree5bbf405d454b36df9f334b0a9a7e4fae361cdcc1
parentfc50f1bdbad3aa52d7cbd3cb836a35806266ec54
gh-118271: Support more options for reading/writing images in Tkinter (GH-118273)

* Add PhotoImage.read() to read an image from a file.
* Add PhotoImage.data() to get the image data.
* Add background and grayscale parameters to PhotoImage.write().
Doc/whatsnew/3.13.rst
Lib/test/test_tkinter/test_images.py
Lib/tkinter/__init__.py
Misc/NEWS.d/next/Library/2024-04-25-11-49-11.gh-issue-118271.5N2Xcy.rst [new file with mode: 0644]