Compiling Python with Tkinter

Kevin Cazabon kevin at cazabon.com
Mon Dec 17 13:09:47 EST 2001


It sounds like the only reason you want to compile Tk is that you need
PIL (and PIL by default needs Tcl/Tk to compile the ImageTk module).

Simple solution:  comment out the lines for ImageTk in the PIL make
file (so only _imaging.o is built).  You can easily build PIL without
Tk installed or required.  See the PIL documentation for details, its
in there somewhere.

Kevin Cazabon.


Martin von Loewis <loewis at informatik.hu-berlin.de> wrote in message news:<j4wuzmkwvf.fsf at informatik.hu-berlin.de>...
> Ben Ocean <zope at thewebsons.com> writes:
> 
> > I do not have headers. I presume I could, and should, build the X
> > libraries.
> 
> Not at all. You already have X libraries installed, so you should get
> the corresponding header files.
> 
> > >Since you still did not mention what system you are using, it is hard
> > >to suggest a procedure for installing the headers.
> > 
> > Sorry. RH71.
> 
> Ok. 'rpm -i XFree86-devel-<version>.<arch>.rpm' should give you the
> header files; fill in version and arch as appropriate.
> 
> > I don't use a GUI on my Linux box: I prefer the command line. I do serve 
> > Web pages. I don't even know what X11 is used for so I don't guess I 
> > develop any apps for it.
> 
> Then you can't use Tkinter, either - it requires an X server for use
> on Linux.
> 
> >  > What do you want Tkinter for if you don't use X Windows?
> > 
> > I'm building PIL into my python to use the libraries. 
> 
> That doesn't really answer the question: if you don't have X, you
> don't need Tkinter, either - not even if you use PIL.
> 
> Regards,
> Martin



More information about the Python-list mailing list