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 spcmicro
Recipients spcmicro
Date 2020-11-28.10:27:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1606559266.34.0.795590814191.issue42491@roundup.psfhosted.org>
In-reply-to
Content
I'm having a problem with an application that uses threads and TKinter. Sometimes everything works fine but there are 2 errors that I can't seem to figure out why they are happening. The first error is the GUI completely locking up with no text cursor in the textbox. The second problem is a crash after the input has been entered.
I have created a bare minimum test application that demonstrates the problem. The problems are easily reproducible.
I've attached a simpleteTKinter test application that I created using Page. I've also attached 3 screen captures. 
1. threadTest-OK.jpg is proper behavior
2. threadTest-Hung.jpg shows the unresponsive application
3. threadTest-Exception.jpg shows the exception thrown when input window is closed
It looks like a race condition to me. I've tried putting in delays and using after but I can't seem to work around it. 
Am I doing something wrong here?
History
Date User Action Args
2020-11-28 10:27:46spcmicrosetrecipients: + spcmicro
2020-11-28 10:27:46spcmicrosetmessageid: <1606559266.34.0.795590814191.issue42491@roundup.psfhosted.org>
2020-11-28 10:27:46spcmicrolinkissue42491 messages
2020-11-28 10:27:45spcmicrocreate