Skip to content

gh-50409: Modernize tkinter.PanedWindow.paneconfigure()#152399

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:tkinter-paneconfigure-rename
Jul 11, 2026
Merged

gh-50409: Modernize tkinter.PanedWindow.paneconfigure()#152399
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:tkinter-paneconfigure-rename

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Rename the first parameter of PanedWindow.paneconfigure() (and its paneconfig alias) from tagOrId to child, for consistency with add(), remove() and panecget(), which already use child. PanedWindow panes are child widgets, not tagged items, so tagOrId (copied long ago from the Canvas/Text item methods) was misleading.

The old name keeps working as a keyword argument but emits a DeprecationWarning and will be removed in Python 3.18. It is no longer advertised in the signature; it is looked up in **kw.

Rename the first parameter of paneconfigure() (and its paneconfig alias)
from 'tagOrId' to 'child', for consistency with add(), remove() and
panecget() -- PanedWindow panes are child widgets, not tagged items.  The
old 'tagOrId' keyword still works but raises DeprecationWarning.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@read-the-docs-community

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

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33541004 | 📁 Comparing 2946dc6 against main (3fa72d5)

  🔍 Preview build  

94 files changed · + 1 added · ± 93 modified

+ Added

± Modified

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) July 11, 2026 05:33
@serhiy-storchaka serhiy-storchaka merged commit 93128f5 into python:main Jul 11, 2026
51 checks passed
@serhiy-storchaka serhiy-storchaka deleted the tkinter-paneconfigure-rename branch July 11, 2026 06:02
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