[Pythonmac-SIG] ANNOUNCE: Tcl/Tk for Mac OS X (fwd)

Tony Lownds tony@metanet.com
Tue, 16 Oct 2001 14:31:44 -0700


>
>This is the same discussion we had about Python (you were in that
>discussion as well, IIRC). To allow the use of "-framework Python" we
>would have to modify each and every python extension module in te
>world to do #include "Python/Python.h" in stead of the current
>#include "Python.h". For Python we decided (so far) not to do this. I
>think this is a problem for Apple to solve, possibly through a variant
>of -framework.

Well, I was thinking that we could change _tkinter.c so that it does

#include <Tcl/tcl.h>

instead of

#include <tcl.h>

when a new define TK_FRAMEWORK is set. Then, when a user wants to 
compile against Tk/Aqua, they would need to add a line like this to 
Setup.local:

_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT -DTK_FRAMEWORK \
         -framework Tcl -framework Tk

When a user wants to link against Tk/X11, they would add a line like:

_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT  \
         -I/.../tcl -I/.../tk -I/.../X11 \
         -ltcl -ltk -lX11

Do you think this is the right thing?

-Tony
--