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 epaine
Recipients epaine, eryksun, taleinat, terry.reedy
Date 2020-05-20.11:15:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589973340.14.0.665861593965.issue40452@roundup.psfhosted.org>
In-reply-to
Content
Multiple Tk instances are already recommended against, but what would be the implications of preventing multiple roots? 

A simple check could be added to the Tk class init which ensures _default_root is None (if it is not None, an error is raised). In this case, I think it would be much easier for the proposed changes to _tkinter, but also make future maintenance of tkinter easier.

I am currently investigating potential solutions based on what Tal has found, and will come back with details if I succeed (and thank you Tal for offering to review a PR).

Separately, should we change the issue from IDLE to tkinter, as that the fix we are looking at applying?
History
Date User Action Args
2020-05-20 11:15:40epainesetrecipients: + epaine, terry.reedy, taleinat, eryksun
2020-05-20 11:15:40epainesetmessageid: <1589973340.14.0.665861593965.issue40452@roundup.psfhosted.org>
2020-05-20 11:15:40epainelinkissue40452 messages
2020-05-20 11:15:40epainecreate