Skip to content

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

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:tkinter-paneconfigure-rename
Open

gh-50409: Modernize tkinter.PanedWindow.paneconfigure()#152399
serhiy-storchaka wants to merge 1 commit 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

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33336889 | 📁 Comparing f5fa057 against main (3fa72d5)

  🔍 Preview build  

3 files changed
± library/curses.html
± library/tkinter.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