mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Alas, the thread support for Tk didn't work. Withdraw it, until I
figure out how to do this right.
This commit is contained in:
parent
fd7a0b871f
commit
5b02078e31
1 changed files with 4 additions and 0 deletions
|
|
@ -1265,6 +1265,7 @@ Tkapp_MainLoop(self, args)
|
|||
!errorInCmd)
|
||||
{
|
||||
int result;
|
||||
#ifdef THIS_CODE_IS_BUGGY
|
||||
result = Tcl_DoOneEvent(TCL_DONT_WAIT);
|
||||
if (PyErr_CheckSignals() != 0)
|
||||
return NULL;
|
||||
|
|
@ -1276,6 +1277,9 @@ Tkapp_MainLoop(self, args)
|
|||
Py_BEGIN_ALLOW_THREADS
|
||||
result = Tcl_WaitForEvent((Tcl_Time *)NULL);
|
||||
Py_END_ALLOW_THREADS
|
||||
#else
|
||||
result = Tcl_DoOneEvent(0);
|
||||
#endif
|
||||
if (PyErr_CheckSignals() != 0)
|
||||
return NULL;
|
||||
if (result < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue