[Pythonmac-SIG] Tkinter problem drives me mad... Mad.... MAAAAAAAAAADDDDD!!!!
Brian Lenihan
brian_l@mac.com
Thu May 22 07:47:25 EDT 2003
On Tuesday, May 20, 2003, at 06:10 AM, Jack Jansen wrote
>
> Could someone who sees the problem currently please try the above
> steps too, just to make sure that I'm not doing something silly?
I had the problem with TclTkAquaBI-8.4.2.0 and I also have it with the
2.4.3 I just built. I deleted everything from 2.4.2.0 using the hints
here:
http://sourceforge.net/mailarchive/
forum.php?thread_id=2190609&forum_id=3853
A minor tweak to _tkinter.c and setting wantobjects = 0 in Tkinter.py
seems to make the problem go away and so far, everything else is still
working. The comments in the thread you started on the Mac-Tcl list,
particularly those by Benjamin Riefenstahl, appear to be correct:
http://sourceforge.net/mailarchive/
forum.php?thread_id=2190607&forum_id=3853
I don't understand the internals Tcl/Tk/Tkinter well enough to know why
wanting Tcl objects would be the default setting in Tkinter.py.
diff -c -r1.159 _tkinter.c
*** _tkinter.c 19 May 2003 19:57:42 -0000 1.159
--- _tkinter.c 22 May 2003 06:32:24 -0000
***************
*** 1639,1644 ****
--- 1639,1645 ----
char *name1, *name2=NULL;
PyObject *res = NULL;
Tcl_Obj *tres;
+ int len;
if (!PyArg_ParseTuple(args, "O&|s:getvar",
varname_converter, &name1, &name2))
***************
*** 1651,1657 ****
res = FromObj(self, tres);
}
else {
! res = PyString_FromString(Tcl_GetString(tres));
}
LEAVE_OVERLAP_TCL
return res;
--- 1652,1658 ----
res = FromObj(self, tres);
}
else {
! res = PyString_FromString(Tcl_GetStringFromObj(tres,
&len));
}
LEAVE_OVERLAP_TCL
return res;
More information about the Pythonmac-SIG
mailing list