]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-86726: Document tkinter method-name conflicts (GH-151917) (GH-151934)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 22 Jun 2026 19:44:03 +0000 (22:44 +0300)
committerGitHub <noreply@github.com>
Mon, 22 Jun 2026 19:44:03 +0000 (19:44 +0000)
commitd4a953acc0ffe89a5db9a6d9edef44c6fea8045b
tree7fa424c4a5cefa82bd3036ff529cfe943b37d93d
parent16c40f944b7bff724a403cf4902763d095bb4b2a
[3.13] gh-86726: Document tkinter method-name conflicts (GH-151917) (GH-151934)

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 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.

(cherry picked from commit 4de5683f213a862c23cf8d46e3d797986e663025)

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