Book description
Practical Programming in Tcl/Tk, 4th edition
The Tcl/Tk bestseller fully updated for Tcl 8.4!
Authoritative coverage of every Tcl and Tk command in the core toolkits
State-of-the-art Tk GUI coverage for Tcl, Perl, Python, and Ruby developers
Covers all key Tcl 8.4 enhancements: VFS, internationalization and performance improvements, new widgets, and much more
Covers multi-threaded Tcl applications and Starkits, a revolutionary way to package and deploy Tcl applications
CD-ROM: Source and binary Tcl/Tk distributions and extensions for Windows®, Linux™, Solaris™, and Macintosh®, plus all code from the book
The Tcl/Tk bestseller, now completely updated for Tcl 8.4!
The world's #1 guide to Tcl/Tk has been thoroughly updated to reflect Tcl/Tk8.4's powerful improvements in functionality, flexibility, and performance!Brent Welch, Ken Jones, and Jeffrey Hobbs, three of the world1s leading Tcl/Tk experts, cover every facet of Tcl/Tk programming, including cross-platform scripting and GUI development, networking, enterprise application integration, and much more.Coverage includes:
Systematic explanations and sample code for all Tcl/Tk 8.4 core commands
Complete Tk GUI development guidance--perfect for developers working with Perl, Python, or Ruby
Insider's insights into Tcl 8.4's key enhancements: VFS layer, internationalized font/character set support, new widgets, and more
Definitive coverage of TclHttpd web server--written by its creator
New ways to leverage Tcl/Tk 8.4's major performance improvements
Advanced coverage: threading, Safe Tcl, Tcl script library, regular expressions, and namespaces
Whether you1re upgrading to Tcl/Tk 8.4, or building GUIs for applicationscreated with other languages, or just searching for a better cross-platformscripting solution, Practical Programming in Tcl and Tk, Fourth Editiondelivers all you need to get results!
The accompanying CD-ROM includes source and binary distributionsof Tcl/Tk, Tcl extensions, and tools for Windows 9x/2000/XP, Linux, Solaris,and Macintosh, plus all the code from the book.
Table of contents
- Copyright
- List of Examples
- List of Tables
-
Preface
- Why Tcl?
- Tcl and Tk Versions
- Extending Tcl and Tk
- Tcl on the World Wide Web
- Ftp Archives
- Newsgroups
- Who Should Read This Book
- How to Read This Book
- On-line Examples
- Typographic Conventions
- Hot Tips
- Book Organization
- What's New in the Fourth Edition
- Other Tcl Books
- First Edition Thanks
- Second Edition Thanks
- Third Edition Thanks
- Fourth Edition Thanks
- Contact the Author
-
I. Tcl Basics
- 1. Tcl Fundamentals
- 2. Getting Started
- 3. The Guestbook CGI Application
- 4. String Processing in Tcl
- 5. Tcl Lists
- 6. Control Structure Commands
- 7. Procedures and Scope
- 8. Tcl Arrays
-
9. Working with Files and Programs
- Running Programs with exec
- The file Command
- Cross-Platform File Naming
- Manipulating Files and Directories
- File Attributes
- Input/Output Command Summary
- Opening Files for I/O
- Reading and Writing
- The Current Directory — cd and pwd
- Matching File Names with glob
- The exit and pid Commands
- Environment Variables
- The registry Command
-
II. Advanced Tcl
- 10. Quoting Issues and Eval
- 11. Regular Expressions
- 12. Script Libraries and Packages
- 13. Reflection and Debugging
- 14. Namespaces
- 15. Internationalization
- 16. Event-Driven Programming
- 17. Socket Programming
- 18. TclHttpd Web Server
- 19. Multiple Interpreters and Safe-Tcl
- 20. Safe-Tk and the Browser Plugin
- 21. Multi-Threaded Tcl Scripts
- 22. Tclkit and Starkits
-
III. Tk Basics
- 23. Tk Fundamentals
- 24. Tk by Example
- 25. The Pack Geometry Manager
- 26. The Grid Geometry Manager
- 27. The Place Geometry Manager
- 28. The Panedwindow Widget
- 29. Binding Commands to Events
-
IV. Tk Widgets
- 30. Buttons and Menus
- 31. The Resource Database
- 32. Simple Tk Widgets
- 33. Scrollbars
- 34. The Entry and Spinbox Widgets
- 35. The Listbox Widget
- 36. The Text Widget
- 37. The Canvas Widget
-
V. Tk Details
- 38. Selections and the Clipboard>
- 39. Focus, Grabs, and Dialogs
- 40. Tk Widget Attributes
- 41. Color, Images, and Cursors
- 42. Fonts and Text Attributes
- 43. Send
- 44. Window Managers and Window Information
- 45. Managing User Preferences
- 46. A User Interface to Bindings
-
VI. C Programming
- 47. C Programming and Tcl
- 48. Compiling Tcl and Extensions
- 49. Writing a Tk Widget in C
-
50. C Library Overview
-
An Overview of the Tcl C Library
- Application Initialization
- Creating and Deleting Interpreters
- Creating and Deleting Commands
- Dynamic Loading and Packages
- Managing the Result String
- Memory Allocation
- Lists
- Command Parsing
- Command Pipelines
- Tracing the Actions of the Tcl Interpreter
- Evaluating Tcl Commands
- Reporting Script Errors
- Manipulating Tcl Variables
- Evaluating Expressions
- Converting Numbers
- Tcl Objects
- Primitive Object Types
- String Object Types
- ByteArrays for Binary Data
- Dynamic Strings
- Character Set Encodings
- AssocData for per Interpreter Data Structures
- Hash Tables
- Option Processing
- Regular Expressions and String Matching
- Event Loop Implementation
- File Handlers
- Timer Events
- Idle Callbacks
- Input/Output
- I/O Channel Drivers
- Manipulating File Names
- Examining the File System
- Virtual File System Implementations
- Thread Support
- Working with Signals
- Exit Handlers
- Macintosh
- Panic
- Miscellaneous
-
An Overview of the Tk C Library
- Main Programs and Command-Line Arguments
- Creating Windows
- Application Name for Send
- Configuring Windows
- Command Options
- Window Coordinates
- Window Stacking Order
- Window Information
- Configuring Widget Attributes
- The Selection and Clipboard
- Event Loop Interface
- Handling Window Events
- Event Bindings
- Keyboard Grab
- Handling Graphic Protocol Errors
- Using the Resource Database
- Managing Bitmaps
- Creating New Image Types
- Using an Image in a Widget
- Photo Image Types
- Canvas Object Support
- Geometry Management
- String Identifiers (UIDS)
- Colors, Colormaps, and Visuals
- 3D Borders
- Mouse Cursors
- Fonts and Text Display
- Graphics Contexts
- Allocate a Pixmap
- Screen Measurements
- Relief Style
- Text Anchor Positions
- Line Cap Styles
- Line Join Styles
- Dashed Lines
- Text Justification Styles
- Atoms
- X Resource ID Management
- Windows Application Handles
-
An Overview of the Tcl C Library
-
VII. Changes
-
51. Tcl 7.4/Tk 4.0
- wish
- Obsolete Features
- The cget Operation
- Input Focus Highlight
- Bindings
- Scrollbar Interface
- pack info
- Focus
- The send Command
- Internal Button Padding
- Radiobutton Value
- Entry Widget
- Menus
- Listboxes
- No geometry Attribute
- Text Widget
- Color Attributes
- Color Allocation and tk colormodel
- Canvas scrollincrement
- The Selection
- The bell Command
- 52. Tcl 7.5/Tk 4.1
- 53. Tcl 7.6/Tk 4.2
-
54. Tcl/Tk 8.0
- The Tcl Compiler
- Namespaces
- Safe-Tcl
- New lsort
- tcl_precision Variable
- Year 2000 Convention
- Http Package
- Serial Line I/O
- Platform-Independent Fonts
- The tk scaling Command
- Application Embedding
- Native Menus and Menubars
- CDE Border Width
- Native Buttons and Scrollbars
- Images in Text Widgets
- No Errors from destroy
- grid rowconfigure
- The Patch Releases
- 55. Tcl/Tk 8.1
- 56. Tcl/Tk 8.2
-
57. Tcl/Tk 8.3
- New File Manipulation Commands and Options
- New glob Options
- Regular Expression Command Enhancements
- Direct Return of scan Matches
- Removing Duplicate List Elements with lsort
- Deleting Elements from an Array
- Enhanced clock Features
- Support for Delayed Package Loading in pkg_mkIndex
- The Img Patch
- The Dash Patch
- Other New Tk Features
- The Patch Releases
-
58. Tcl/Tk 8.4
- 64-Bit Support
- Additional Filesystem Features and Commands
- New and Enhanced List Commands
- Array Searching and Statistics
- Enhanced Support for Serial Communications
- New String Comparison Operators
- Command Tracing
- Additional Introspection Commands
- Other Tcl Changes
- New Tk Widgets
- Text Widget Undo Mechanism and Other Enhancements
- New pack and grid Features
- Displaying Both Text and an Image in a Widget
- New Button Relief Attributes
- Controlling the State of Entries and Listboxes
- More Window Manager Interaction
-
Other Tk Changes
- Mouse Button Repeat Control
- Better Support for Image Transparency
- Selecting Multiple Files with tk_getOpenFile
- Fixed-Width Button Support on Windows Systems
- Easier Access to Clipboard Contents
- Determining if an Image is Used
- New Events and Substitutions for Window Managers
- Caret Management for Improved XIM/IME Support
- New bell Option to Prevent Resetting Screen Savers
- Generating Postscript for Embedded Widgets
- 59. About The CD-ROM
-
51. Tcl 7.4/Tk 4.0
Product information
- Title: Practical Programming in Tcl and Tk, Fourth Edition
- Author(s):
- Release date: June 2003
- Publisher(s): Pearson
- ISBN: 9780130385604
You might also like
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 …
book
Mastering Embedded Linux Programming - Third Edition
Harness the power of Linux to create versatile and robust embedded solutions Key Features Learn how …
book
The C++ Programming Language, 4th Edition
The new C++11 standard allows programmers to express ideas more clearly, simply, and directly, and to …
book
Digital Integrated Circuit Design Using Verilog and Systemverilog
For those with a basic understanding of digital design, this book teaches the essential skills to …