]> granicus.if.org Git - python/commitdiff
Alas, the thread support for Tk didn't work. Withdraw it, until I
authorGuido van Rossum <guido@python.org>
Tue, 19 Aug 1997 01:00:50 +0000 (01:00 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 19 Aug 1997 01:00:50 +0000 (01:00 +0000)
figure out how to do this right.

Modules/_tkinter.c

index e0f207b8e3edadd9c853708d5891f1e8cf702d1e..0abe27185838ea5803b02f62a6f6c03a4cbfa9c5 100644 (file)
@@ -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)