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
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com