Tcl/Tk: A Developer's Guide, Fourth Edition is an essential resource for computer professionals, from systems administrators to programmers. It covers new Tcl features, expanded Tcl-OO coverage, web technology using Rivet and SQLite, and AI integration with AWS. The book also delves into Tcl's standard tools, multi-faceted nature, and extensibility, making it ideal for developing GUIs, client/server middleware, and web applications. Readers will quickly learn to code in Tcl and extend its capabilities with the inclusion of numerous code examples and case studies.
The updated edition includes over 150 pages on the latest Tcl extensions, proven techniques, and tools for effective programming. Extensive code snippets and online tutorials enhance understanding, while case studies provide practical insights. The book also discusses Tcl's role as the hidden "secret sauce" in commercial applications, highlighting its graphics and control infrastructure. With a vibrant user community and evolving API, Tcl/Tk remains a powerful and versatile programming platform for both beginners and experienced programmers.
1. Introduction - p. xxvii 2. Chapter 1: Tcl/Tk introduction - p. 1 3. Chapter 2: The mechanics of using the Tcl and Tk interpreters - p. 17 4. Chapter 3: Introduction to the Tcl language - p. 35 5. Chapter 4: Navigating the file system, basic I/O, sockets and chan - p. 93 6. Chapter 5: Using strings and lists - p. 117 7. Chapter 6: Complex data structures with lists, arrays, and dicts - p. 143 8. Chapter 7: Procedure techniques - p. 179 9. Chapter 8: Namespaces, packages, and modules - p. 201 10. Chapter 9: Basic object-oriented programming in Tcl - p. 241 11. Chapter 10: Advanced object-oriented programming in Tcl - p. 265 12. Chapter 11: Introduction to Tk graphics - p. 321 13. Chapter 12: Using the canvas widget - p. 389 14. Chapter 13: The text widget and htmllib - p. 455 15. Chapter 14: Tk megawidgets - p. 495 16. Chapter 15: Extending Tcl - p. 567 17. Chapter 16: Applications with multiple environments - p. 641 18. Chapter 17: Extensions and packages - p. 679 19. Chapter 18: Tcl tools - p. 723 20. Chapter 19: Tcllib and Tklib - p. 777 21. Chapter 20: Tcl and artificial intelligence - p. 813 22. Chapter 21: Tips and techniques - p. 853 23. Index - p. 895
Tcl/Tk: A Developer's Guide, Fourth Edition is an essential resource for computer professionals, from systems administrators to programmers. It covers new Tcl features, expanded Tcl-OO coverage, web technology using Rivet and SQLite, and AI integration with AWS. The book also delves into Tcl's standard tools, multi-faceted nature, and extensibility, making it ideal for developing GUIs, client/server middleware, and web applications. Readers will quickly learn to code in Tcl and extend its capabilities with the inclusion of numerous code examples and case studies.
The updated edition includes over 150 pages on the latest Tcl extensions, proven techniques, and tools for effective programming. Extensive code snippets and online tutorials enhance understanding, while case studies provide practical insights. The book also discusses Tcl's role as the hidden "secret sauce" in commercial applications, highlighting its graphics and control infrastructure. With a vibrant user community and evolving API, Tcl/Tk remains a powerful and versatile programming platform for both beginners and experienced programmers.
1. Introduction - p. xxvii 2. Chapter 1: Tcl/Tk introduction - p. 1 3. Chapter 2: The mechanics of using the Tcl and Tk interpreters - p. 17 4. Chapter 3: Introduction to the Tcl language - p. 35 5. Chapter 4: Navigating the file system, basic I/O, sockets and chan - p. 93 6. Chapter 5: Using strings and lists - p. 117 7. Chapter 6: Complex data structures with lists, arrays, and dicts - p. 143 8. Chapter 7: Procedure techniques - p. 179 9. Chapter 8: Namespaces, packages, and modules - p. 201 10. Chapter 9: Basic object-oriented programming in Tcl - p. 241 11. Chapter 10: Advanced object-oriented programming in Tcl - p. 265 12. Chapter 11: Introduction to Tk graphics - p. 321 13. Chapter 12: Using the canvas widget - p. 389 14. Chapter 13: The text widget and htmllib - p. 455 15. Chapter 14: Tk megawidgets - p. 495 16. Chapter 15: Extending Tcl - p. 567 17. Chapter 16: Applications with multiple environments - p. 641 18. Chapter 17: Extensions and packages - p. 679 19. Chapter 18: Tcl tools - p. 723 20. Chapter 19: Tcllib and Tklib - p. 777 21. Chapter 20: Tcl and artificial intelligence - p. 813 22. Chapter 21: Tips and techniques - p. 853 23. Index - p. 895