Skip to content

Commit a17331a

Browse files
gh-87577: Document that wm_manage does not accept ttk widgets
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>
1 parent 41cc78a commit a17331a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/library/tkinter.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2699,7 +2699,8 @@ Base and mixin classes
26992699
Make *widget* a stand-alone top-level window, decorated by the window
27002700
manager with a title bar and so on.
27012701
Only :class:`Frame`, :class:`LabelFrame` and :class:`Toplevel` widgets
2702-
may be used; passing any other widget type raises an error.
2702+
may be used (the :mod:`tkinter.ttk` versions are **not** accepted);
2703+
passing any other widget type raises an error.
27032704
:meth:`wm_manage` is an alias of :meth:`!manage`.
27042705

27052706
.. versionadded:: 3.3

0 commit comments

Comments
 (0)