Skip to content

gh-151888: Add tkinter PhotoImage.redither method#151889

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:tkinter-photoimage-redither
Open

gh-151888: Add tkinter PhotoImage.redither method#151889
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:tkinter-photoimage-redither

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jun 21, 2026

Copy link
Copy Markdown
Member

Wrap the photo image redither Tk command (since Tk 8.5), which previously had no tkinter wrapper and was reachable only through tk.call().

PhotoImage.redither() recalculates the dithered image in each window where it is displayed. This is useful when the image data was supplied in pieces, in which case the dithered image may not be exactly correct.

This completes the wrapping of the photo image subcommands. The command is available on the bundled Tk, so no version guard is needed.

🤖 Generated with Claude Code

Wrap the photo image "redither" Tk command (since Tk 8.5) as the method
PhotoImage.redither(), which recalculates the dithered image in each
window where it is displayed (useful when the image data was supplied in
pieces), completing the wrapping of the photo image subcommands.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XWevzas4XVpjzedzR9gKVo
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33239242 | 📁 Comparing 9ec0b58 against main (24828e5)

  🔍 Preview build  

3 files changed
± library/tkinter.html
± whatsnew/3.16.html
± whatsnew/changelog.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant