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 serhiy.storchaka
Recipients dominic108, epaine, gpolo, serhiy.storchaka
Date 2020-12-19.17:46:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608399965.51.0.871310375556.issue39171@roundup.psfhosted.org>
In-reply-to
Content
It is addressed in issue42630. Now a RuntimeError with relevant error message is raised when call askinteger() without explicit parent if there is no default root widget.

Autocreating a top-level root window is not good idea. It pops up an empty window with default size and title and left it open after closing the dialog window. If withdraw it right after creation, it would look less weird, but it may break the following code which calls Tk() and expects it to be set as a default root window.
History
Date User Action Args
2020-12-19 17:46:05serhiy.storchakasetrecipients: + serhiy.storchaka, gpolo, dominic108, epaine
2020-12-19 17:46:05serhiy.storchakasetmessageid: <1608399965.51.0.871310375556.issue39171@roundup.psfhosted.org>
2020-12-19 17:46:05serhiy.storchakalinkissue39171 messages
2020-12-19 17:46:05serhiy.storchakacreate