| help | account  


Tcl/Tk in a Nutshell
View Larger Image
Paul Raines, Jeff Tranter
O'Reilly Media, Paperback, Published March 1999, 440 pages, ISBN 1565924339
List Price: $39.99
Our Price: $23.95
You Save: $16.04 (40% Off)


FREE Shipping on Orders over $40!*
Availability: Out-Of-Stock

Be the First to Write a Review and tell the world about this title!

People who purchase this book frequently purchase:

Books on similar topics, in best-seller order:Books from the same publisher, in best-seller order:

The Tcl language and Tk graphical toolkit are simple and powerful building blocks for custom applications. The Tcl/Tk combination is increasingly popular because it lets you produce sophisticated graphical interfaces with a few easy commands, develop and change scripts quickly, and conveniently tie together existing utilities or programming libraries.

One of the attractive features of Tcl/Tk is the wide variety of commands, many offering a wealth of options. Most of the things you'd like to do have been anticipated by the language's creator, John Ousterhout, or one of the developers of Tcl/Tk's many powerful extensions. Thus, you'll find that a command or option probably exists to provide just what you need.

And that's why it's valuable to have a quick reference that briefly describes every command and option in the core Tcl/Tk distribution as well as the most popular extensions. Keep this book on your desk as you write scripts, and you'll be able to find almost instantly the particular option you need.

Most chapters consist of alphabetical listings. Since Tk and mega-widget packages break down commands by widget, the chapters on these topics are organized by widget along with a section of core commands where appropriate. Contents include:

  • Core Tcl and Tk commands and Tk widgets
  • C interface (prototypes)
  • Expect
  • [incr Tcl] and [incr Tk]
  • Tix
  • TclX
  • BLT
  • Oratcl, SybTcl, and Tclodbc

About the Author

Paul Raines & Jeff Tranter

Paul Raines is a physicist and scientific programmer at the Stanford Linear Accelerator Center at Stanford University where he is part of a large collaboration studying CP violation (why charge times parity is not conserved in some particle decays, an arcane research topic that bears on the more understandable question of why there is an excess of matter over antimatter in the universe). He is a huge advocate of scripting languages and has been using Tcl on various projects since 1992. He also maintains a freely distributable quick- reference guide for Tcl/Tk, now published as O'Reilly & Associates' Tcl/Tk Pocket Reference. When he can get away from the lab, Paul enjoys hiking, bridge, and soccer. He lives in San Mateo, California, with his wife Deborah and her horse and three cats.

Jeff Tranter works as a software designer for a Canadian telecommunications company and has been using Tcl since 1992 on a number of programming projects related to software tools and testing. He is an active user of Linux, a contributor to the Linux Documentation Project, and author of the O'Reilly book Linux Multimedia Guide. His hobbies include Ham radio, playing guitar, and mountain biking.

Table of Contents

Preface

Chapter 1. Introduction
   What Is Tcl?
   Structure of This Book

Chapter 2. Tcl Core Commands
   Overview
   Basic Language Features
   Command-Line Options
   Environment Variables
   Special Variables
   Backslash Substitutions
   Operators and Math Functions
   Regular Expressions
   Pattern Globbing
   Predefined I/O Channel Identifiers
   Group Listing of Commands
   Alphabetical Summary of Commands

Chapter 3. Tk Core Commands
   Example
   Command-Line Options
   Environment Variable
   Special Variables
   Group Listing of Tk Commands
   Widget Overview
   Widget Commands
   Utility Commands

Chapter 4. The Tcl C Interface
   Constants
   Data Types
   Group Listing of Functions
   Alphabetical Summary of Functions

Chapter 5. The Tk C Interface
   Constants
   Data Types
   Group Listing of Functions
   Alphabetical Summary of Functions

Chapter 6. Expect
   Overview
   Example
   Command-Line Options
   Environment Variables
   Special Variables
   Grouped Summary of Commands
   Alphabetical Summary of Commands

Chapter 7. [incr Tcl]
   Basic Class Definition
   Special Variables
   Group Listing of Commands
   Example
   Alphabetical Summary of Commands

Chapter 8. [incr Tk]
   Basic Structure of a Mega-widget
   Special Variable
   Methods and Variables
   Alphabetical Summary of Commands

Chapter 9. Tix
   Tix Overview
   Special Variables
   Group Listing of Tix Commands
   Tix Mega-widget Overview
   Tix Mega-widgets
   Tix Standard Widgets Overview
   Tix Standard Widgets
   Tix Core Commands
   Tix Extensions to Tk image Command

Chapter 10. TclX
   Special Variables
   Group Listing of Commands
   Alphabetical Summary of Commands

Chapter 11. BLT
   Environment Variable
   Special Variables
   Group Listing of Commands
   Alphabetical Summary of Commands

Chapter 12. Oratcl
   Overview
   Example
   Environment Variables
   Special Variables
   Group Listing of Commands
   Alphabetical Summary of Commands

Chapter 13. Sybtcl
   Overview
   Example
   Environment Variables
   Special Variables
   Group Listing of Commands
   Alphabetical Summary of Commands

Chapter 14. Tclodbc
   Overview
   Group Listing of Commands
   Summary of Commands

Chapter 15. Hints and Tips for the Tcl Programmer
   Think Commands, Not Statements
   Comments Are Treated as Commands
   A Symbolic Gesture
   Lists Are Strings, but Not All Strings Are Lists
   Indirect References
   Executing Other Programs
   When Is a Number Not a Number?
   Quoting and More Quoting
   Write Once, Run Where?
   Common Tk Errors
   Use the Source, Luke!

Appendix A. Tcl Resources

Index




Forgot your password?
FAQs
Shipping Options
Returns
Your Orders
Your Account