Book Image

Tcl/Tk 8.5 Programming Cookbook

Book Image

Tcl/Tk 8.5 Programming Cookbook

Overview of this book

With Tcl/Tk, you can create full-featured cross-platform applications in a simple and easy-to-understand way without any expensive development package; the only tools required are a simple text editor and your imagination. This practical cookbook will help you to efficiently interact with editors, debuggers, and shell type interactive programs using Tcl/Tk 8. This cookbook will comprehensively guide you through practical implementation of Tcl/Tk 8.5 commands and tools. This book will take you through all the steps needed to become a productive programmer in Tcl/Tk 8. Right from guiding you through the basics to creating a stand-alone application, it provides complete explanation of all the steps along with handy tips and tricks. The book begins with an introduction to the Tcl shell, syntax, variables, and programming best practices in the language. It then explores procedures and the flow of events with control constructs followed by advanced error trapping and recovery. From Chapter 4, a detailed study of string expressions and handling enables you to handle various string functions and use lists to expand the string functionality. The book then discusses in-depth the Tcl Dictionary and how to utilize it to store and retrieve data. File operations and Tk GUI handling are covered extensively along with a developing a real-world address book application to practice the concepts learned.
Table of Contents (20 chapters)
Tcl/Tk 8.5 Programming Cookbook
Credits
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Preface

About the Reviewers

Clif Flynt has been a professional programmer since 1978. He has used languages ranging from Am2900 microcode to high level languages such as APL, HTML, and Tcl/Tk. Clif has developed applications for many clients including the US Navy, General Mills, and McDonalds, and also for his own amusement.

Clif has taught computer science at Grinnell College and Eastern Michigan University. He's a member of the Washtenaw Community College Computer Science Advisory Committee. He's delivered training sessions in the US, Canada, Europe, and India, and has given talks at conferences in the US and Europe.

Clif is the president and founder of the Tcl Community Association, the organization that runs the annual Tcl/Tk conference in the US and coordinates the Tcl/Tk and Open ACS involvement with Google Summer of Code. Since 1999, Clif has owned his own company: Noumena Corporation. Noumena Corporation provides computer training and software development services, focusing on Tcl/Tk and other open source technologies.

Clif has written Tcl/Tk for Real Programmers, Tcl/Tk: A Developer's Guide; has edited Interactive Web Applications with Tcl/Tk (Academic Press, Schroeder/Doyle), Practical Programming in Tcl/Tk (Prentice Hall, Welch/Jones/Hobbs), Tcl and the Tk Toolkit (Addison Wesley, Ousterhout/Jones), and Tcl/Tk Programmer's Reference (Osborne, Nelson).

Thomas J. Krehbiel is a graduate electrical engineer with a Masters' in solid state semiconductor and device physics. During his career in the semiconductor industry, he did IC circuit design, IC device design, managed a parametric test area, managed a CIM group, and worked in a RET (Reticle Enhancement Technologies) software development group. Along the way, he created a parametric data analysis system, a wafer tracking system, and a RET processing system.

Thomas has many years of experience managing software development and the hardware and system associated with that development. He has programmed for over 30 years, starting with FORTRAN and ending with his current favorite language Tcl/Tk. As computers changed, Tom worked with mainframes (IBM360), minis (DEC), and desktops (HPUX, Solaris, Linux, Windows).

When he was younger, he enjoyed playing baseball, basketball, handball, tennis, hiking the Grand Canyon, and snow skiing.