search for books and compare prices
Tables of Contents for Tcl/Tk for Real Programmers
Chapter/Section Title
Page #
Page Count
Acknowledgments
xi
2
Preface
xiii
1
Tcl/Tk: GUI Programming for a Gooey World
xiii
4
Introduction
xvii
2
Where to Get More Information
xix
 
CHAPTER 1 Why Tcl/TK?
1
16
1.1 Tcl Overview
2
1
1.2 Tcl as a Command Glue Language
3
5
1.3 Tcl as a General-Purpose Interpreter
8
3
1.4 Tcl as an Extensible Interpreter
11
1
1.5 Tcl as an Embeddable Interpreter
11
1
1.6 Tcl as a Rapid Development Tool
12
2
1.7 GUI-Based Programming
14
1
1.8 Shipping Products
14
1
1.9 Bottom Line
15
2
CHAPTER 2 The Mechanics of Using the Tcl and Tk Interpreters
17
16
2.1 The tclsh and wish Interpreters
17
4
2.2 Using tclsh/wish Interactively
21
3
2.3 Evaluating Tcl Script Files
24
8
2.4 Bottom Line
32
1
CHAPTER 3 Introduction to the Tcl Language
33
40
3.1 Overview of the Basics
34
5
3.2 Data Types
39
3
3.3 Tcl Commands
42
20
3.4 Input/Output in Tcl
62
7
3.5 Bottom Line
69
4
CHAPTER 4 Tcl Code Examples
73
30
4.1 Pop Client
73
3
4.2 Command Evaluation and Substitutions
76
4
4.3 Looking for a Needle in a Haystack
80
20
4.4 Speed
100
2
4.5 Bottom Line
102
1
CHAPTER 5 Using Lists and Arrays
103
44
5.1 Using the Tcl List
105
6
5.2 Using the Associative Array
111
2
5.3 New Commands
113
7
5.4 Trees in Tcl
120
6
5.5 Tree Package Implementation
126
13
5.6 Using the Tree Package
139
3
5.7 Speed Considerations
142
2
5.8 Bottom Line
144
3
CHAPTER 6 Procedure Techniques
147
32
6.1 Arguments to Procedures
148
3
6.2 Renaming or Deleting Commands
151
1
6.3 Getting Information about Procedures
152
3
6.4 Substitution and Evaluation of Strings
155
2
6.5 Working with Global and Local Scopes
157
6
6.6 Making a Tcl Object
163
13
6.7 Bottom Line
176
3
CHAPTER 7 Namespaces and Packages
179
32
7.1 Namespaces and Scoping Rules
180
12
7.2 Packages
192
7
7.3 A Tree Object Package with Namespaces
199
9
7.4 A Bottom Line
208
3
CHAPTER 8 Introduction to Tk Graphics
211
60
8.1 Creating a Widget
213
1
8.2 Conventions
214
1
8.3 Common Options
215
2
8.4 Determining and Setting Options
217
1
8.5 The Basic Widgets
218
1
8.6 Introducing Widgets: label, button, and entry
219
5
8.7 Widget Layout: frame, place, pack, and grid
224
12
8.8 Selection Widgets: radiobutton, checkbutton, menu, and listbox
236
1
8.8 radiobutton, checkbutton, menu, and listbox
236
15
8.9 Scrollbar
251
9
8.10 The Scale Widget
260
3
8.11 New Windows
263
1
8.12 Interacting With the Event Loop
264
2
8.13 Scheduling the Future: after
266
2
8.14 Bottom Line
268
3
CHAPTER 9 The Canvas Widget, Images, and Events
271
64
9.1 Overview of the canvas Widget
272
2
9.2 Creating a canvas
274
2
9.3 Creating Displayable Canvas Items
276
5
9.4 More Canvas Widget Subcommands
281
19
9.5 The bind and focus Commands
300
9
9.6 Creating a Widget
309
9
9.7 The image Object
318
13
9.8 Bottom Line
331
4
CHAPTER 10 The text Widget and html_library
335
54
10.1 Overview of the text Widget
336
5
10.2 Creating a text Widget
341
3
10.3 Text Widget Subcommands
344
19
10.4 HTML Display Package
363
23
10.5 Bottom Line
386
3
CHAPTER 11 Tk Megawidgets
389
58
11.1 Standard Dialog Widgets
390
8
11.2 Megawidget Building Philosophy
398
4
11.3 Building a Megawidget Library
402
7
11.4 A Scrolling Listbox Megawidget
409
13
11.5 Incorporating a Megawidget into a Larger Megawidget
422
9
11.6 Making a Model Megawidget: The grab Command
431
8
11.7 A Different Technique for Building Megawidgets
439
6
11.8 Bottom Line
445
2
CHAPTER 12 Writing a Tcl Extension
447
74
12.1 Overview
449
19
12.2 Building an Extension
468
4
12.3 An Example
472
32
12.4 Complex Data
504
12
12.5 Bottom Line
516
5
CHAPTER 13 Extensions and Packages
521
32
13.1 [incr Tcl]
524
3
13.2 Expect
527
7
13.3 TclX
534
5
13.4 VS Package
539
3
13.5 Sybtcl and Oratcl
542
2
13.6 BLT
544
6
13.7 Graphics Extensions: Img and Dash-Patch
550
1
13.8 Bottom Line
551
2
CHAPTER 14 Programming Tools
553
36
14.1 Code Formatters
555
4
14.2 Code Checkers
559
6
14.3 Debugging
565
9
14.4 GUI Generators
574
4
14.5 Tcl Compilers
578
4
14.6 Packaging Tools
582
1
14.7 Tcl Extension Generator: SWIG
583
4
14.8 Bottom Line
587
2
CHAPTER 15 Tips and Techniques
589
28
15.1 Debugging Techniques
589
12
15.2 Tcl as a Glue Language: The exec Command
601
3
15.3 Common Mistakes
604
4
15.4 Coding Tips and Techniques
608
8
15.5 Bottom Line
616
1
APPENDIX A Introduction to the CD-ROM
617
4
A.1 How Do I Find Those Extra Goodies?
618
1
A.2 Acknowledgments
619
2
APPENDIX B Installing Tcl/Tk Distributions
621
18
B.1 Installing Tcl/Tk on a Macintosh
622
5
B.2 Installing Tcl/Tk on Windows 95 or Windows NT
627
4
B.3 Installing Tcl/Tk on Unix/Linux Systems
631
8
APPENDIX C Installing Tcl/Tk Extensions
639
20
C.1 BLT
639
3
C.2 dash
642
1
C.3 Expect
643
1
C.4 Img
643
3
C.5 incr_tcl
646
2
C.6 oratcl
648
3
C.7 plus
651
1
C.8 sybtcl
652
2
C.9 TclX
654
5
APPENDIX D Installing Tcl/Tk Packages
659
20
D.1 Installing the vs Package
659
2
D.2 TkCon
661
2
D.3 Frink
663
1
D.4 Tcl_Cruncher
664
1
D.5 tclcheck
665
1
D.6 tclparse
666
1
D.7 tcl-debug
666
1
D.8 Tuba
667
1
D.9 TDebug
668
1
D.10 Spectcl
669
4
D.11 SWIG
673
2
D.12 megaWidget
675
4
APPENDIX E Bonus Book and Tutorials
679
8
E.1 Accessing the Real World Tcl Chapters
679
1
E.2 Accessing the Tutorials
679
1
E.3 TclTutor
680
5
E.4 Accessing the Extra Documentation
685
2
Index of Commands Used in Examples
687
4
Index
691