]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-86726: Document tkinter method-name conflicts (GH-151917) (#151933)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 23 Jun 2026 06:20:42 +0000 (09:20 +0300)
committerGitHub <noreply@github.com>
Tue, 23 Jun 2026 06:20:42 +0000 (06:20 +0000)
commit62245c95204999aee57af4dde2cb7c14275e91f9
tree121e49525f572cdaef8fae32049828e63ad6dee3
parent912a68b639882aa11c10636117ff0dda3bd6b1fc
[3.14] gh-86726: Document tkinter method-name conflicts (GH-151917) (#151933)

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