This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mfncooper
Recipients mfncooper
Date 2021-03-05.19:25:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614972319.75.0.638524894464.issue43411@roundup.psfhosted.org>
In-reply-to
Content
Attempting to use a ttk.Frame with wm_manage() causes a TclError:

_tkinter.TclError: window ".!frame" is not manageable: must be a frame, labelframe or toplevel

The (Tcl) documentation for wm manage states "Only frame, labelframe and toplevel widgets can be used with this command." One might reasonably expect a ttk.Frame to appropriately fall under this requirement, especially since the name 'frame' is used for them, but it does not. One must use a tk.Frame instead to make this work.

At the very least, this needs to be documented. Looking at the error message and seeing it complain that a 'frame' is not one of 'frame', 'labelframe' or 'toplevel' is extremely confusing. There is nothing to lead to the conclusion that a ttk Frame is not a 'frame'. Better than documenting it, of course, would be to make wm_manage actually work properly with a ttk.Frame, as developers would expect.
History
Date User Action Args
2021-03-05 19:25:19mfncoopersetrecipients: + mfncooper
2021-03-05 19:25:19mfncoopersetmessageid: <1614972319.75.0.638524894464.issue43411@roundup.psfhosted.org>
2021-03-05 19:25:19mfncooperlinkissue43411 messages
2021-03-05 19:25:18mfncoopercreate