Book description
John K. Ousterhout’s Definitive Introduction to Tcl/Tk–Now Fully Updated for Tcl/Tk 8.5
Tcl and the Tk Toolkit, Second Edition, is the fastest way for newcomers to master Tcl/Tk and is the most authoritative resource for experienced programmers seeking to gain from Tcl/Tk 8.5’s powerful enhancements. Written by Tcl/Tk creator John K. Ousterhout and top Tcl/Tk trainer Ken Jones, this updated volume provides the same extraordinary clarity and careful organization that made the first edition the world’s number one Tcl/Tk tutorial.
Part I introduces Tcl/Tk through simple scripts that demonstrate its value and offer a flavor of the Tcl/Tk scripting experience. The authors then present detailed, practical guidance on every feature necessary to build effective, efficient production applications–including variables, expressions, strings, lists, dictionaries, control flow, procedures, namespaces, file and directory management, interprocess communication, error and exception handling, creating and using libraries, and more.
Part II turns to the Tk extension and Tk 8.5’s new themed widgets, showing how to organize sophisticated user interface elements into modern GUI applications for Tcl.
Part III presents incomparable coverage of Tcl’s C functions, which are used to create new commands and packages and to integrate Tcl with existing C software–thereby leveraging Tcl’s simplicity while accessing C libraries or executing performance-intensive tasks.
Throughout, the authors illuminate all of Tcl/Tk 8.5’s newest, most powerful improvements. You’ll learn how to use new Starkits and Starpacks to distribute run-time environments and applications through a single file; how to take full advantage of the new virtual file system support to treat entities such as zip archives and HTTP sites as mountable file systems; and more.
From basic syntax to simple Tcl commands, user interface development to C integration, this fully updated classic covers it all. Whether you’re using Tcl/Tk to automate system/network administration, streamline testing, control hardware, or even build desktop or Web applications, this is the one Tcl/Tk book you’ll always turn to for answers.
Table of contents
- Title Page
- Copyright Page
- Contents
- Addison-Wesley Professional Computing Series
- Preface
- Preface to the First Edition
- Introduction
-
Part I. The Tcl Language
- 1. An Overview of Tcl and Tk
- 2. Tcl Language Syntax
- 3. Variables
- 4. Expressions
- 5. String Manipulation
- 6. Lists
- 7. Dictionaries
- 8. Control Flow
- 9. Procedures
- 10. Namespaces
- 11. Accessing Files
- 12. Processes and Interprocess Communication
- 13. Errors and Exceptions
- 14. Creating and Using Tcl Script Libraries
- 15. Managing Tcl Internals
- 16. History
-
Part II. Writing Scripts for Tk
- 17. An Introduction to Tk
- 18. A Tour of the Tk Widgets
- 19. Themed Widgets
- 20. Fonts, Bitmaps, and Images
- 21. Geometry Managers
- 22. Events and Bindings
- 23. The Canvas Widget
- 24. The Text Widget
- 25. Selection and the Clipboard
- 26. Window Managers
- 27. Focus, Modal Interaction, and Custom Dialogs
- 28. More on Configuration Options
- 29. Odds and Ends
-
Part III. Writing Tcl Applications in C
- 30. Tcl and C Integration Philosophy
- 31. Interpreters
- 32. Tcl Objects
- 33. Evaluating Tcl Code
- 34. Accessing Tcl Variables
- 35. Creating New Tcl Commands
- 36. Extensions
- 37. Embedding Tcl
- 38. Exceptions
- 39. String Utilities
- 40. Hash Tables
- 41. List and Dictionary Objects
- 42. Channels
- 43. Handling Events
- 44. File System Interaction
- 45. Operating System Utilities
- 46. Threads
- 47. Building Tcl and Extensions
- Appendixes
- Index
Product information
- Title: Tcl and the Tk Toolkit, Second Edition
- Author(s):
- Release date: September 2009
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780321336330
You might also like
book
Tcl/Tk 8.5 Programming Cookbook
With over 100 recipes, this Cookbook is ideal for both beginners and advanced Tcl/Tk programmers. From …
audiobook
The Design of Everyday Things
First, businesses discovered quality as a key competitive edge; next came science. Now, Donald A. Norman, …
book
Python Crash Course, 2nd Edition
This is the second edition of the best selling Python book in the world. Python Crash …
book
Python Crash Course, 3rd Edition
Python Crash Course is the world's best-selling guide to the Python guide programming language, with over …