Section 2. Tcl/Tk basics
Origins of Tcl/Tk
Tcl stands for Tool Command Language. Tk is the
Graphical Toolkit extension of Tcl, providing a
variety of standard GUI interface items to facilitate
rapid, high-level application development.
Development on Tcl/Tk, pronounced "tickle
tee-kay", began in 1988 by John K. Ousterhout
(shown in the image), then a Professor at U.C.
Berkeley (UCB). Tcl was designed with the specific
goals of extensibility, a shallow learning curve, and
ease of embedding. Tk development began in
1989, and the first version was available in 1991.
Dr. Ousterhout continued development of Tcl/Tk
after he left UCB, then going to work for Sun
Microsystems for a stint. Now at Tcl Developer
Xchange (which begat Ajuba Solutions, which was
purchased by Interwoven), he keeps on improving
the language, currently in version 8.3.2 stable and
8.4 development, as of this writing.
See the "History of Tcl" page for more details.
Tools and files
There are two main programs that you need on your Linux system to explore Tcl/Tk. These are
tclsh and wish. As you might discern from its name, the former is a Tcl shell, most frequently
used to provide execution context for a shell script. Wish is the equivalent, for a windowed GUI
environment.
Check for the presence of these files by typing the following:
~/tcltk$ which tclsh
/usr/bin/tclsh
~/tcltk$ which wish
/usr/bin/wish
The which command returns the path to the specified executable. If you don't see results
similar to these, then you'll want to head over to the Tcl/Tk page to download and build your
own copy. Of course, the absence of these programs on your system is not indicative of any
problem. Unlike Perl, Tcl/Tk is generally not regarded as essential to the operation of Linux.
Every distribution I'm aware of ships with a version of Tcl/Tk and the most popular extensions
Presented by developerWorks, your source for great tutorials
ibm.com/developerWorks
Tcl/Tk quick start Page 4 of 33
评论0
最新资源