blob: ac70b68c800339e71c74d6e44912f2a68c42db0d [file] [log] [blame]
Martin v. Löwisb21cb5f2001-03-21 07:42:07 +00001$Id$
2
Martin v. Löwis20efa682001-11-11 14:07:37 +00003Installing Tix.py
Martin v. Löwisb21cb5f2001-03-21 07:42:07 +00004----------------
5
Martin v. Löwis20efa682001-11-11 14:07:37 +000060) To use Tix.py, you need Tcl/Tk (V8.3.3), Tix (V8.1.1) and Python (V2.1.1).
7 Tix.py has been written and tested on a Intel Pentium running RH Linux 5.2
Martin v. Löwisb21cb5f2001-03-21 07:42:07 +00008 and Mandrake Linux 7.0 and Windows with the above mentioned packages.
9
10 Older versions, e.g. Tix 4.1 and Tk 8.0, might also work.
11
Martin v. Löwis20efa682001-11-11 14:07:37 +000012 There is nothing OS-specific in Tix.py itself so it should work on
Martin v. Löwisb21cb5f2001-03-21 07:42:07 +000013 any machine with Tix and Python installed. You can get Tcl and Tk
14 from http://dev.scriptics.com and Tix from http://tix.sourceforge.net.
15
Martin v. Löwis20efa682001-11-11 14:07:37 +0000161) Build and install Tcl/Tk 8.3. Build and install Tix 8.1.
Martin v. Löwisb21cb5f2001-03-21 07:42:07 +000017 Ensure that Tix is properly installed by running tixwish and executing
18 the demo programs. Under Unix, use the --enable-shared configure option
Martin v. Löwis20efa682001-11-11 14:07:37 +000019 for all three. We recommend tcl8.3.3 for this release of Tix.py.
Martin v. Löwisb21cb5f2001-03-21 07:42:07 +000020
Martin v. Löwis20efa682001-11-11 14:07:37 +0000212a) If you have a distribution like ActiveState with a tcl subdirectory
22 of $PYTHONHOME, which contains the directories tcl8.3 and tk8.3,
23 make a directory tix8.1 as well. Recursively copy the files from
24 <tix>/library to $PYTHONHOME/lib/tix8.1, and copy the dynamic library
25 (tix8183.dll or libtix8.1.8.3.so) to the same place as the tcl dynamic
26 libraries ($PYTHONHOME/Dlls or lib/python-2.1/lib-dynload). In this
27 case you are all installed, and you can skip to the end.
28
292b) Modify Modules/Setup.dist and setup.py to change the version of the
30 tix library from tix4.1.8.0 to tix8.1.8.3
Martin v. Löwisb21cb5f2001-03-21 07:42:07 +000031 These modified files can be used for Tkinter with or without Tix.
32
333) The default is to build dynamically, and use the Tcl 'package require'.
34 To build statically, modify the Modules/Setup file to link in the Tix
35 library according to the comments in the file. On Linux this looks like:
36
37# *** Always uncomment this (leave the leading underscore in!):
38_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
39# *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
40 -L/usr/local/lib \
41# *** Uncomment and edit to reflect where your Tcl/Tk headers are:
42 -I/usr/local/include \
43# *** Uncomment and edit to reflect where your X11 header files are:
44 -I/usr/X11R6/include \
45# *** Or uncomment this for Solaris:
46# -I/usr/openwin/include \
47# *** Uncomment and edit for BLT extension only:
48# -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
49# *** Uncomment and edit for PIL (TkImaging) extension only:
50# (See http://www.pythonware.com/products/pil/ for more info)
51# -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \
52# *** Uncomment and edit for TOGL extension only:
53# -DWITH_TOGL togl.c \
54# *** Uncomment and edit for Tix extension only:
Martin v. Löwis20efa682001-11-11 14:07:37 +000055 -DWITH_TIX -ltix8.1.8.3 \
Martin v. Löwisb21cb5f2001-03-21 07:42:07 +000056# *** Uncomment and edit to reflect your Tcl/Tk versions:
Martin v. Löwis20efa682001-11-11 14:07:37 +000057 -ltk8.3 -ltcl8.3 \
Martin v. Löwisb21cb5f2001-03-21 07:42:07 +000058# *** Uncomment and edit to reflect where your X11 libraries are:
59 -L/usr/X11R6/lib \
60# *** Or uncomment this for Solaris:
61# -L/usr/openwin/lib \
62# *** Uncomment these for TOGL extension only:
63# -lGL -lGLU -lXext -lXmu \
64# *** Uncomment for AIX:
65# -lld \
66# *** Always uncomment this; X11 libraries to link with:
67 -lX11
68
694) Rebuild Python and reinstall.
70
71You should now have a working Tix implementation in Python. To see if all
72is as it should be, run the 'tixwidgets.py' script in the Demo/tix directory.
73Under X windows, do
74 /usr/local/bin/python Demo/tix/tixwidgets.py
75
76If this does not work, you may need to tell python where to find
77the Tcl, Tk and Tix library files. This is done by setting the
78TCL_LIBRARY, TK_LIBRARY and TIX_LIBRARY environment variables. Try this:
79
Martin v. Löwis20efa682001-11-11 14:07:37 +000080 env TCL_LIBRARY=/usr/local/lib/tcl8.3 \
81 TK_LIBRARY=/usr/local/lib/tk8.3 \
Martin v. Löwisb21cb5f2001-03-21 07:42:07 +000082 TIX_LIBRARY=/usr/local/lib/tix8.1 \
83 /usr/local/bin/python Demo/tix/tixwidgets.py
84
85
86If you find any bugs or have suggestions for improvement, please report them
87via http://tix.sourceforge.net
88
89