Graphical Applications with Tcl and Tk, 2nd Edition

book cover thumbnail image of Graphical Applications with Tcl and Tk, Second Edition
  • by Eric Foster-Johnson
  • ISBN: 978-1558515697
  • January 1997
  • This book is out of print but may be available from used
    and out of print book sellers

Previous Edition

book cover thumbnail image of the first edition of Graphical Applications with Tcl and Tk

Overview

Tcl, pronounced "tickle," stands for the Tool Command Language. With its associated user interface tookkit, Tk, pronounced "tee-kay," you can quickly create cross-platform applications with graphical user interfaces, all without having to learn GTK, Qt, the Windows API, or Mac OS X.

Created by John Ousterhout, Tcl is more like a scripting language than a programming language, so it shares a greater similarity to the Bash Shell or Perl than it does to C++ or C.

Graphical Applications with Tcl and Tk introduces this handy scripting language that runs on Windows, Linux, and Mac OS X. It focuses on using Tcl/Tk to create graphical desktop applications that include menu bars, text editors, and graphical drawings, all with very little code.

Table of Contents

  • Preface
  • Section I: Writing Applications in Tcl/Tk
  • Chapter 1: Your First Tcl Programs
  • Chapter 2: Tcl Basics
  • Chapter 3: Interacting with the User
  • Chapter 4: Menus
  • Chapter 5: Text Editing with Tcl and Tk
  • Chapter 6: Lists, Files, and Directories/li>
  • Chapter 7: Dialog Windows
  • Chapter 8: Bitmaps, Images and the Canvas Widget
  • Section II: Advanced Applications
  • Chapter 9: Tcl Tricks and Traps: Handling Errors and Debugging
  • Chapter 10: Launching Applications from Tcl
  • Chapter 11: Hypertext and Online Help
  • Chapter 12: Communicating Between Applications: Networking and Beyond
  • Chapter 13: Tcl and the Web
  • Chapter 14: Advanced Applications
  • Section III: Embedding Tcl in Your C and C++ Applications
  • Chapter 15: Embedding Tcl in Your Applications
  • Chapter 16: Extending Tcl
  • Appendix A: For More Information
  • Appendix B: Installing Tcl and Tk
  • Appendix C: The CD-ROM
  • Index

Errata for Graphical Applications with Tcl and Tk, 2nd Edition

The following typos have been found in the book. Thanks to David Fisher for pointing them out.

Page Errata & Corrections
28 In Table 2.1, two words are reversed in the entries on text in quotes and braces. The table should read:
 
"Text in Quotes" Pass the text between the quotes as one argument, performing command and variable substitution.
{Text in Braces} Pass the text between the braces as one argument; defer substitution until later.
303 In two code examples on this page, the text widget search commands have a double dash, --, which got munged to a single long dash. Look for:

#Search for text.
set indx [$textwidget search -- \
  $search_for $find_last_indx end]

721 The URL for ET (Embedded Tk) has moved to http://www.hwaci.com/sw/et/ET.html. Note that ET is no longer being actively developed.

Purchase Options

I'm sorry. This book is out of print but may be available from used and out of print book sellers.