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