Skip to content

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

Merged
serhiy-storchaka merged 3 commits into
python:mainfrom
serhiy-storchaka:tkinter-photoimage-redither
Jun 22, 2026
Merged

gh-151888: Add tkinter PhotoImage.redither method#151889
serhiy-storchaka merged 3 commits 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

read-the-docs-community Bot commented Jun 21, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33250613 | 📁 Comparing f7d5868 against main (24828e5)

  🔍 Preview build  

6 files changed · ± 6 modified

± Modified

@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) June 22, 2026 11:48
@serhiy-storchaka serhiy-storchaka merged commit b86c305 into python:main Jun 22, 2026
93 of 95 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant