Book description
Newly updated with over 150 pages of material on the latest Tcl extensions, Tcl/Tk: A Developer’s Guide is a unique practical tutorial for professional programmers and beginners alike. Starting with a clear picture of the basics, Tcl/Tk covers the variety of tools in this "Swiss army knife" of programming languages, giving you the ability to enhance your programs, extend your application's capabilities, and become a more effective programmer.
This updated edition covers all of the new features of version 8.6, including object-oriented programming and the creation of megawidgets, existing data structure implementations, themed widgets and virtual events. Extensive code snippets and online tutorials in various languages will give you a firm grasp on how to use the Tcl/Tk libraries and interpreters and, most importantly, on what constitutes an effective strategy for using Tcl/Tk.
- Includes the latest features of Tcl/Tk 8.6
- Covers Tcl development tools, popular extensions, and packages to allow developers to solve real-world problems with Tcl/Tk immediately
- Provides straightforward explanations for beginners and offers tips, style guidelines, and debugging techniques for advanced users
Table of contents
- Cover Image
- Content
- Title
- Copyright
- Foreword
- Preface
- Acknowledgments
- Introduction
- Chapter 1. Tcl/Tk Features
- Chapter 2. The Mechanics of Using the Tcl and Tk Interpreters
- Chapter 3. Introduction to the Tcl Language
- Chapter 4. Navigating the File System, Basic I/O and Sockets
- Chapter 5. Using Strings and Lists
- Chapter 6. Complex Data Structures with Lists, Arrays and Dicts
- Chapter 7. Procedure Techniques
- Chapter 8. Namespaces, Packages and Modules
- Chapter 9. Basic Object-Oriented Programming in Tcl
- Chapter 10. Advanced Object-Oriented Programming in Tcl
-
Chapter 11. Introduction to Tk Graphics
- 11.1 Creating a Widget
- 11.2 Conventions
- 11.3 Common Options
- 11.4 Determining and Setting Options
- 11.5 The Basic Widgets
- 11.6 Introducing Widgets: label, button, and entry
- 11.7 Application Layout: Geometry Managers and Container Widgets
- 11.8 Selection Widgets: radiobutton, checkbutton, menu, and listbox
- 11.9 Scrollbar
- 11.10 The scale Widget
- 11.11 New Windows
- 11.12 Interacting with the Event Loop
- 11.13 Scheduling the Future: after
- 11.14 Bottom Line
- 11.15 Problems
-
Chapter 12. Using the Canvas Widget
- 12.1 Overview of the canvas Widget
- 12.2 Creating a canvas Widget
- 12.3 Creating Displayable canvas Items
- 12.4 More canvas Widget Subcommands
- 12.5 The bind and focus Commands
- 12.6 Creating a Widget
- 12.7 A Help Balloon: Interacting with the Window Manager
- 12.8 The image Object
- 12.9 Bottom Line
- 12.10 Problems
- Chapter 13. The text Widget and htmllib
-
Chapter 14. Tk Megawidgets
- 14.1 Standard Dialog Widgets
- 14.2 Megawidget Building Philosophy
- 14.3 Functionality That Makes Megawidgets Possible
- 14.4 Building a Megawidget
- 14.5 A Scrolling Listbox Megawidget
- 14.6 Namespaces and TK Widgets
- 14.7 Incorporating a Megawidget into a Larger Megawidget
- 14.8 Making a Modal Megawidget: The grab and tkwait Commands
- 14.9 Automating Megawidget Construction
- 14.10 Building Megawidgets with TclOO
- 14.11 Bottom Line
- 14.12 Problems
- Chapter 15. Extending Tcl
- Chapter 16. Applications with Multiple Environments
- Chapter 17. Extensions and Packages
- Chapter 18. Programming Tools
- Chapter 19. Tips and Techniques
- Index
Product information
- Title: Tcl/Tk, 3rd Edition
- Author(s):
- Release date: January 2012
- Publisher(s): Morgan Kaufmann
- ISBN: 9780123847188
You might also like
book
The Well-Grounded Rubyist, Third Edition
The Well-Grounded Rubyist, Third Editionis a beautifully written tutorial that begins with your first Ruby program …
book
21st Century C, 2nd Edition
Throw out your old ideas of C, and relearn a programming language that’s substantially outgrown its …
book
Computer Systems, 5th Edition
Computer Systems, Fifth Edition provides a clear, detailed, step-by-step introduction to the central concepts in computer …
book
Practical Programming in Tcl & Tk, Third Edition
2202H-5 The Tcl/Tk best-seller, now completely updated for Tcl 8.2 and the Tcl Web Server! Tcl/Tk …