0%

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

  1. Title Page
  2. Copyright Page
  3. Contents
  4. Addison-Wesley Professional Computing Series
  5. Preface
  6. Preface to the First Edition
  7. Introduction
  8. Part I. The Tcl Language
    1. 1. An Overview of Tcl and Tk
    2. 2. Tcl Language Syntax
    3. 3. Variables
    4. 4. Expressions
    5. 5. String Manipulation
    6. 6. Lists
    7. 7. Dictionaries
    8. 8. Control Flow
    9. 9. Procedures
    10. 10. Namespaces
    11. 11. Accessing Files
    12. 12. Processes and Interprocess Communication
    13. 13. Errors and Exceptions
    14. 14. Creating and Using Tcl Script Libraries
    15. 15. Managing Tcl Internals
    16. 16. History
  9. Part II. Writing Scripts for Tk
    1. 17. An Introduction to Tk
    2. 18. A Tour of the Tk Widgets
    3. 19. Themed Widgets
    4. 20. Fonts, Bitmaps, and Images
    5. 21. Geometry Managers
    6. 22. Events and Bindings
    7. 23. The Canvas Widget
    8. 24. The Text Widget
    9. 25. Selection and the Clipboard
    10. 26. Window Managers
    11. 27. Focus, Modal Interaction, and Custom Dialogs
    12. 28. More on Configuration Options
    13. 29. Odds and Ends
  10. Part III. Writing Tcl Applications in C
    1. 30. Tcl and C Integration Philosophy
    2. 31. Interpreters
    3. 32. Tcl Objects
    4. 33. Evaluating Tcl Code
    5. 34. Accessing Tcl Variables
    6. 35. Creating New Tcl Commands
    7. 36. Extensions
    8. 37. Embedding Tcl
    9. 38. Exceptions
    10. 39. String Utilities
    11. 40. Hash Tables
    12. 41. List and Dictionary Objects
    13. 42. Channels
    14. 43. Handling Events
    15. 44. File System Interaction
    16. 45. Operating System Utilities
    17. 46. Threads
    18. 47. Building Tcl and Extensions
  11. Appendixes
    1. A. Installing Tcl and Tk
    2. B. Extensions and Applications
    3. C. Tcl Resources
    4. D. Tcl Source Distribution License
  12. Index
3.144.25.74