]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-87577: Document that wm_manage does not accept ttk widgets (GH-152532)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 29 Jun 2026 06:02:42 +0000 (09:02 +0300)
committerGitHub <noreply@github.com>
Mon, 29 Jun 2026 06:02:42 +0000 (09:02 +0300)
wm_manage() works only with the classic tkinter Frame, LabelFrame and
Toplevel widgets, not their tkinter.ttk counterparts.

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

index c368141126403ac854082f2a9cf6348be374019e..64ef07ede6fbda9fbc091f443fd72c844eb9618d 100644 (file)
@@ -2699,7 +2699,8 @@ Base and mixin classes
       Make *widget* a stand-alone top-level window, decorated by the window
       manager with a title bar and so on.
       Only :class:`Frame`, :class:`LabelFrame` and :class:`Toplevel` widgets
-      may be used; passing any other widget type raises an error.
+      may be used (the :mod:`tkinter.ttk` versions are **not** accepted);
+      passing any other widget type raises an error.
       :meth:`wm_manage` is an alias of :meth:`!manage`.
 
       .. versionadded:: 3.3