/Demo/tix/INSTALL.txt

http://unladen-swallow.googlecode.com/ · Plain Text · 89 lines · 72 code · 17 blank · 0 comment · 0 complexity · 30cc554a063fb3089bffb4573f722391 MD5 · raw file

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