Re: Python with TK

Steven Reiz (sreiz@sparc.aie.nl)
Wed, 8 Mar 1995 09:39:47 GMT

>>>>> "Gregory" == Gregory Lambert <lambertg@polymnie.cert.fr> writes:

Gregory> Can I use Python with the TK toolkit for window
Gregory> programming and how ? Thanks

Sure, here are the install instructions that I've written for myself:

to install python w/ readline and tkinter

- compile and install tcl and tk (extract tcl & tk tar files, apply patches,
in tcl, then tk, ./configure, make 'CFLAGS=-O6', su, make install)
- configure, compile and install gnu readline (./configure, make 'CFLAGS=-O6',
su, cp libreadline.a /usr/local/bin)
- extract python and install patches
- apply own patches
- configure python: ./configure --with-readline=/usr/local/lib
- edit Modules/Setup: cd Modules, cp Setup.in Setup, enable dbm, tkinter,
syslog, new
NetBSD: change MACHDEPPATH to $(DESTLIB)/netbsd
- make "OPT=-O6 -m486"
NetBSD: append -lcrypt to Modules/Makefile, LOCALMODLIBS def.
Solaris: append -lsocket -lnsl -liberty to Modules/Makefile, LIBS def.
- make test, make install, make libinstall, make maninstall,
install Misc/python-mode.el, cd Doc, make, make lib.info
- test readline, tkinter

-- 
-- Steven Reiz, AI Engineering, Amsterdam, sreiz@aie.nl                     --
--                                         <URL:http://www.aie.nl/~sreiz>   --
-- We can only see a short distance ahead, but we can see plenty there      --
-- that needs to be done.                  A.M. Turing (1950)               --