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 christian.heimes, epaine, jmccabe, serhiy.storchaka, terry.reedy
Date 2021-01-08.16:06:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610122010.8.0.302943281887.issue42867@roundup.psfhosted.org>
In-reply-to
Content
This is a Tk/Windows issue, not tkinter. I tested the following on Windows 10 using Tk 8.6.9:

# Our entry
pack [entry .e]

# Causes the entry to fail
#tk_messageBox -title Title -message Message
#after 0 tk_messageBox -title Title -message Message

# Does not cause the entry to fail
#after 1 tk_messageBox -title Title -message Message
after idle tk_messageBox -title Title -message Message

I have not tried on a later version of Tk so it may be fixed but it also may be a fundamental Windows issue. The workaround would be to either use .after(1, ...) or .after_idle(...)
History
Date User Action Args
2021-01-08 16:06:50epainesetrecipients: + epaine, terry.reedy, christian.heimes, serhiy.storchaka, jmccabe
2021-01-08 16:06:50epainesetmessageid: <1610122010.8.0.302943281887.issue42867@roundup.psfhosted.org>
2021-01-08 16:06:50epainelinkissue42867 messages
2021-01-08 16:06:50epainecreate