This page contains information on Tk 4.0, which is a major new release of the Tk toolkit. It is accompanied by a minor new release of Tcl (version 7.4). The final versions of these releases were made on July 1, 1995. These releases run only on Unix systems.
Table of Contents
When you retrieve a Tcl or Tk release, you'll get a compressed tar
file with a name like
zcat tcl7.4.tar.Z | tar xf -
Each of these commands will create a directory named
Tcl and Tk should compile with little or no effort on any platform
that runs a UNIX-like operating system and the X Window System. This
includes workstations from Sun, HP, IBM, SGI, and DEC, PCs running
a number of Unix operating systems such as Solaris, Linux, SCO UNIX,
and FreeBSD, plus many other platforms such as Cray and NEC supercomputers.
The best way to learn about the new features in Tk 4.0 is to read the
Tk 4.0 Overview and Porting Guide. This document also describes the incompatibilities introduced by Tk 4.0 and gives advice on porting Tk 3.6 scripts to Tk 4.0. If you want even more detail on what has changed in Tk 4.0, see the file
Tk 4.0 is not upward compatible with Tk 3.6. Most scripts written for Tk 3.6 will need some changes in order to run under Tk 4.0. We apologize for the inconvenience this will cause. Here is an explanation in case you're interested.
Ever since the first release of Tk in 1991, I have warned that Tcl/Tk community that there would eventually be a release with major incompatibilities. I knew that I wouldn't be able to get all the features of Tk perfect from the start, and I wanted to have at least one chance to fix the most serious problems, even if it required incompatible changes, so that users wouldn't have to live with them forever. Tk 4.0 is the promised "big one". I've tried to avoid incompatibilities wherever possible, but there were a few places like the binding mechanism where I couldn't find a way to fix the problems without introducing incompatibilities. Again, I apologize for the porting hassles, but I hope you'll agree with me that it was worth it to fix the problems.
Please refer to the porting guide for advice on how to identify potential incompatibilities and fix them.
Patches are available to correct several problems discovered in Tcl 7.4 and Tk 4.0 after they were released. As additional bugs are found, more patches will be released. Before installing a Tcl or Tk release, check for patches and apply any patches that are available. At present, the following patches are available for Tcl 7.4 and Tk4 .0:
To apply a patch, do the following:
Patches must be applied in order for a given release. For example, you must apply Tk 4.0p1 and Tk 4.0p2 before applying Tk 4.0p3. In addition, patches should be applied in clean distribution directories: if you have modified some of the files locally then the patches may not apply correctly. The