

The popular combination of Tcl with the Tk extension is referred to as Tcl/Tk, and enables building a graphical user interface (GUI) natively in Tcl.
#ACTIVETCL REST FULL#
Because Tcl is a very compact language, it is used on embedded systems platforms, both in its full form and in several other small-footprint versions.
#ACTIVETCL REST CODE#
Tcl interpreters are available for many operating systems, allowing Tcl code to run on a wide variety of systems. It is commonly used embedded into C applications, for rapid prototyping, scripted applications, GUIs, and testing. Tcl supports multiple programming paradigms, including object-oriented, imperative and functional programming or procedural styles. Tcl casts everything into the mold of a command, even programming constructs like variable assignment and procedure definition. It was designed with the goal of being very simple but powerful. Tcl (pronounced " tickle" or as an initialism ) is a high-level, general-purpose, interpreted, dynamic programming language.
#ACTIVETCL REST HOW TO#
However, so as not to be burdened with getting a text to type in the examples, I will show you how to get some powerful demos which will easily illustrate some of the features of the Tcl/Tk system.Dynamic typing, everything can be treated as a string Learn from Demo'sĪt present, we have the most current version of the wish and tclsh programs already installed on our systems. In an email to me, he recommends a text by Ousterhout written in May 2008 as being the best book on the market which explains the language. Also, several new versions have appeared since the 8.0 version covered by this text.

The text concludes with the details of how to add Tcl into the C language, and also how to design your own extensions to the language.Īs Eric stated early in his book, Tcl development will continue. This computer had Windows 95 installed, and soon version 8.0 of wish and version 8.0 0f tclsh was installed on this older system. The book also included a CD with all the code and the 8.0 version of wish and a much earlier version on the CD.Įarly in the week, my daughter arrived from a visit to Nashville, and showed me that my brother had sent me his old IBM Aptiva computer.
#ACTIVETCL REST PLUS#
And in 800 plus pages the details of using buttons, dialog windows, canvas widgets and the rest of the items available are explained and illustrated. The book was written about ten years after Ousterhout first developed the idea of Tcl. From this humble introduction you can begin to learn the details of creating and using the various widgets offered in the tk system. These two lines entered into the console, which appears after you issue the wish command, will soon create a button which displays the message "Hello World!," and which closes when you click on it. The ubiquitous "Hello World" program is presented in tk as follows:īutton. To illustrate just how easy a graphical may be created. Often this will include the version of the tk used as wish80, which is the version covered by the Eric Foster Johnson book. The other, which allows the graphical features of tk, which is known as wish. One, tclsh, is a shell language like bash (or the korn shell mentioned a few months ago), which only understands tcl. The Tcl/Tk set is comprised of two interpreters. He began giving the system away, and later became concerned with the complexities of developing GUI',s which idea resulted in Tk, or a graphical toolkit. He first developed the idea in 1987 as he was working in the design of tools. Tcl (tool command language) was created by John Ousterhout during the late 1980's. To pursue this idea, I queried the versions of Linux on my main computer to learn if this were true, and if so, which version was installed: PCLinux 2010 tk 8.6, PCLinux 2009-1 tk 8.6, PCLinux 2007 tk 8.4, Debian 2.5-26-686 not installed, Debian 2.6.26 amd 64 not installed, openSUSE 11.2 tk 8.5, Ubuntu 9.10 tk 8.4, Ubuntu 10.04 LTS tk 8.4, Mythbuntu 8.04 LTS tk 8.4, Dreamlinux 3.5 tk 8.4, Absolute Linux (Slackware 13.0.0.0.0) tk 8.5, KNOPPIX 6.2 tk 8.4, Linux Mint 8 (Helena) tk 8.4, and Mandrivia 2010 tk 8.6. We learn from the excellent book, Graphical Applications with Tcl & Tk, Second Edition, by Eric Foster Johnson, that Tcl/Tk is often pre-installed with Linux.

Computer Languages from A to Z: Tcl/Tk by Gary L.
