]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-86726: Document tkinter method-name conflicts (GH-151917) (GH-151926)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 22 Jun 2026 12:42:45 +0000 (14:42 +0200)
committerGitHub <noreply@github.com>
Mon, 22 Jun 2026 12:42:45 +0000 (12:42 +0000)
commit59706a6d9a409dde530a86eeea6164f3ef1ff54d
tree64a2b6c4f8313f38a4fac190483f2e8ce8d020af
parentef171b603d8f8e7f885e85d3387cdb523ced4b97
[3.15] gh-86726: Document tkinter method-name conflicts (GH-151917) (GH-151926)

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.

(cherry picked from commit 4de5683f213a862c23cf8d46e3d797986e663025)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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