2nd Edition

A Developer's Guide

Authors: Clif Flynt
Paperback ISBN: 9781558608023
eBook ISBN: 9780080518435
Imprint: Morgan Kaufmann
Published Date: 5th May 2003
Page Count: 758
49.99 + applicable tax
81.95 + applicable tax
62.95 + applicable tax
Compatible Not compatible
VitalSource PC, Mac, iPhone & iPad Amazon Kindle eReader
ePub & PDF Apple & PC desktop. Mobile devices (Apple & Android) Amazon Kindle eReader
Mobi Amazon Kindle eReader Anything else

Institutional Access

Table of Contents

Tcl/Tk Features. 1.1 Tcl Overview. 1.1.1 The Standard Tcl Distribution 1.2 Tcl as a Glue Language 1.2.2 Tcl Scripts Compared with Unix Shell Scripts 1.2.3 Tcl Scripts Compared with MS-DOS .bat Files 1.3 Tcl as a General-Purpose Interpreter 1.3.1 Tcl/Tk Compared with Visual Basic 1.3.2 Tcl/Tk Compared with Perl 1.3.3 Tcl/Tk Compared with Python 1.3.4 Tcl/Tk Compared with Java 1.4 Tcl as an Extensible Interpreter 1.5 Tcl as an Embeddable Interpreter 1.6 Tcl as a Rapid Development Tool 1.7 GUI-Based Programming 1.8 Shipping Products 1.9 Bottom Line 1.10 Problems The Mechanics of Using the Tcl and Tk Interpreters. 2.1 The tclsh and wish Interpreters 2.1.1 Starting the tclsh and wish Interpreters 2.1.2 Starting tclsh or wish under Unix 2.1.3 Starting tclsh or wish under Microsoft Windows 2.1.4 Starting tclsh or wish on the Mac 2.1.5 Exiting tclsh or wish 2.2 Using tclsh/wish Interactively 2.2.1 Tclsh as a Command Shell 2.2.2 Tk Console (tkcon) -- An Alternative Interactive tclsh/wish Shell 2.2.3 Evaluating Scripts Interactively 2.3 Evaluating Tcl Script Files 2.3.1 The Tcl Script File 2.3.2 Evaluating Tcl Script Files 2.3.3 Evaluating a Tcl Script File under Unix 2.3.4 Evaluating a Tcl Script File under Microsoft Windows 2.3.5 Evaluating a Tcl Script on the Mac 2.4 Bottom Line 2.5 Problems Introduction to the Tcl Language. 3.1 Overview of the Basics 3.1.1 Syntax 3.1.2 Grouping Words 3.1.3 Comments 3.1.4 Data


Tcl/Tk (Tool Command Language/Tool Kit) makes it fast and easy to implement any type of application, from games to network analyzers. Tcl/Tk is a full-bodied, mature programming platform used by NASA rocket scientists, Wall Street database experts, Internet designers, and open source programmers around the world. Tcl/Tk's multi-faceted and extensible nature make it ideal for developing end-user GUIs, client/server middleware, Web applications, and more. You can code completely in Tcl, use any of hundreds of extensions, call C or Java subroutines from Tcl/Tk, or use Tcl to glue legacy applications together.

Written from a programmer's perspective, Tcl/Tk: A Developer's Guide describes how to use Tcl's standard tools and the unique features that make Tcl/Tk powerful: including graphics widgets, packages, namespaces, and extensions. With this book an experienced programmer will be able to code Tcl in a few hours. In just a few chapters you will learn about Tcl features that allow you to isolate and protect your code from being damaged in large applications. You will even learn how to extend the language itself.

Tcl/Tk: A Developer's Guide clearly discusses development tools, proven techniques, and existing extensions. It shows how to use Tcl/Tk effectively and provides many code examples. This fully revised new edition is the complete resource for computer professionals, from systems administrators to programmers. It covers versions 7.4 to 8.4 and includes a CD-ROM containing the interpreters, libraries, and tutorials to get you started quickly. Additional materials in the book include case studies and discussions of techniques for the advanced user.

On the CD-ROM Distributions for Tcl 8.3 and 8.4 for Linux, Solaris, Macintosh, and Windows. A copy of ActiveTcl from ActiveState. *The latest releas

Key Features

Brings beginners up to speed quickly. Overview of Tcl development tools, popular extensions, and packages. *Tips, style guidelines, and debugging techniques for the advanced user.


Programmers, Internet designers, and open source programmers.


No. of pages:
© Morgan Kaufmann 2003
Morgan Kaufmann
eBook ISBN:
Paperback ISBN:


"The best computer programmers are astonishingly more productive than average. One reason is that they use good tools, and they use them well. Clif Flynt's Tcl/Tk: A Developer's Guide, Second Edition helps you improve your effectiveness as a developer in both of these ways. Tcl is a software language with a great return on investment—it achieves portable, powerful, economical results with great economy. Just a few lines of Tcl are enough to create applications that are both interesting and useful. Clif draws on his deep experience as a front-line developer to help you get the most out of Tcl. He writes clearly, and has organized his book with instructive examples that teach the essentials of Tcl. He covers the right material too: Tcl/Tk packs in not just such long-standing Tcl strengths such as its easy networking and graphical user interface, but also the latest breakthroughs with internationalization, widget upgrades, and StarPacks. Want to take your programming to the next level? Get Tcl/Tk: A Developer's Guide, Second Edition." —Cameron Laird is vice president of Phaseit, Inc. (, where he specializes in Rapid Enterprise Integration with Tcl and related tools. His frequent publications on information technology include the popular "Regular Expressions" column (

About the Authors

Clif Flynt Author

Clif Flynt is a professional programmer and has been a Tcl advocate since 1994. He has developed Tcl applications for the e-commerce, factory control, computer-based education, network analysis, games, firewall configuration, systems administration, and more. He has taught Tcl/Tk seminars in colleges and corporations around the world and writes regularly on Tcl/Tk for the developer community.

Affiliations and Expertise

CEO, Noumena Corporation, Dexter, Michigan