]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-86726: Document tkinter method-name conflicts (GH-151917)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 22 Jun 2026 12:14:10 +0000 (15:14 +0300)
committerGitHub <noreply@github.com>
Mon, 22 Jun 2026 12:14:10 +0000 (12:14 +0000)
commit4de5683f213a862c23cf8d46e3d797986e663025
treeab7b9205400bebcd423540ccc96332d1f2d87a4b
parent851b77976025042c9c8c926549841df318886bfb
gh-86726: Document tkinter method-name conflicts (GH-151917)

Document where widget methods shadow inherited Misc, geometry-manager and
Wm methods, correct the inaccurate "size/bbox is an alias of
grid_size/grid_bbox" claims, and add "# overrides X" comments at the
definitions.

Also document the geometry-manager ambiguity: the short names forget, info,
slaves, content and propagate are defined by Pack, Place and Grid but
resolve to the pack variant.

Cross-reference the window-manager methods grid, forget and state with the
same-named grid geometry manager, Pack.forget and ttk.Widget.state.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Doc/library/tkinter.rst
Doc/library/tkinter.ttk.rst
Lib/tkinter/__init__.py
Lib/tkinter/ttk.py