[Python-Dev] Tkinter lockups.

Jeff Epler jepler at unpythonic.net
Mon Apr 24 03:18:15 CEST 2006


I just read the manpage for Tk_Init(3) (fc4 package tk-8.4.9-3) and it
does not say that Tk_Init() may only be called once.  While this doesn't
mean Python shouldn't work around it, I think the behavior should be
considered a bug in Tk, not _tkinter.

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;
}

Jeff


More information about the Python-Dev mailing list