[Python-Dev] Tkinter lockups.
"Martin v. Löwis"
martin at v.loewis.de
Sun Apr 30 21:47:45 CEST 2006
Jeff Epler wrote:
> However, on this system, I couldn't recreate the problem you reported
> with either the "using _tkinter directly" instructions, or using this
> "C" test program:
>
> #include <tcl.h>
> #include <tk.h>
>
> int main(void) {
> Tcl_Interp *trp;
> unsetenv("DISPLAY");
> trp = Tcl_CreateInterp();
> printf("%d\n", Tk_Init(trp));
> printf("%d\n", Tk_Init(trp));
> return 0;
> }
The problem only occurs when Tcl and Tk were compiled with
--enable-threads, and it occurs because Tk fails to unlock a mutex
in a few error cases. The patch below fixes the problem.
I'll report it to the Tcl people, and see whether I can work around
in _tkinter.
Regards,
Martin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tk.diff
Url: http://mail.python.org/pipermail/python-dev/attachments/20060430/55b272b8/attachment.diff
More information about the Python-Dev
mailing list