Signed Edition Sweepstakes
 
 

Recently Viewed clear list


Original Essays | September 30, 2014

Benjamin Parzybok: IMG A Brief History of Video Games Played by Mayors, Presidents, and Emperors



Brandon Bartlett, the fictional mayor of Portland in my novel Sherwood Nation, is addicted to playing video games. In a city he's all but lost... Continue »
  1. $11.20 Sale Trade Paper add to wish list

    Sherwood Nation

    Benjamin Parzybok 9781618730862

spacer

This item may be
out of stock.

Click on the button below to search for this title in other formats.


Check for Availability
Add to Wishlist

TCL and the TK Toolkit (Addison-Wesley Professional Computing)

TCL and the TK Toolkit (Addison-Wesley Professional Computing) Cover

 

Synopses & Reviews

Publisher Comments:

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.

Book News Annotation:

An authoritative guide written by the creator of TCl and the Tk Toolkit--a scripting language and a toolkit which together represent a programming environment for creating graphical user interfaces under X Windows. Offers time-saving to X programmers.
Annotation c. Book News, Inc., Portland, OR (booknews.com)

Synopsis:

The Tcl scripting language and the Tk toolkit - a programming environment for creating graphical user interfaces under X Windows - together represent one of the most exciting innovations in X Window System programming. Because Tcl and Tk are so easy to learn, extremely powerful, and contain so many sophisticated features, they have dramatically reduced development time for thousands of X programmers.

Written by the creator of Tcl and Tk, this book is the single authoritative resource for anyone who wants to work with this extraordinary environment. The book offers an introduction and overview of Tcl and Tk and then presents detailed instructions for script writing in Tcl and working with the Tk toolkit.

You will discover how Tk's windowing shell, wish, enables you to develop window-based applications with amazingly few lines of code. You will also find information on Tk's novel and powerful facility for linking applications. Many other features are also described, such as Tk's hypertext and hypergraphics widgets and Tcl's facilities for procedures, list management, and subprocess execution.

For interested readers, the book also describes the C interfaces for Tcl and Tk, showing how to extend their built-in features by writing new C commands.

Upon reading this book, you will learn how to produce far more powerful X Windows System applications in a fraction of the time that used to be required.

"The main guide to Tcl is Tcl and the Tk Toolkit by John Ousterhout (Reading, MA: Addison-Wesley, 1994), the creator of Tcl."

- Unix Review

"The definitive source of information on the system is John Ousterhout's book, Tcl and the Tk Toolkit, published by Addison-Wesley."

- Linux Journal

"Overall, Ousterhout has provided an excellent overview (Tcl and the Tk Toolkit)of a very useful piece of software. If you're thinking of building or customizing a graphical user interface, you won't find many guides better than this."

- IEEE Computer

"This is an extremely well-written book, containing many figures, tables, examples, and scripts to illustrate the Tcl and Tk concepts. His presentation technique and expertise result in a superb text. I enjoyed Tcl and the Tk Toolkit and recommend it highly to anyone with any shell writing experience. Everyone who uses the X Window System will find this book helpful."

- Sys Admin

020163337XB04062001

Synopsis:

The Tcl scripting language and the Tk toolkit - a programming environment for creating graphical user interfaces under X Windows - together represent one of the most exciting innovations in X Window System programming. Because Tcl and Tk are so easy to learn, extremely powerful, and contain so many sophisticated features, they have dramatically reduced development time for thousands of X programmers.

Written by the creator of Tcl and Tk, this book is the single authoritative resource for anyone who wants to work with this extraordinary environment. The book offers an introduction and overview of Tcl and Tk and then presents detailed instructions for script writing in Tcl and working with the Tk toolkit.

You will discover how Tk's windowing shell, wish, enables you to develop window-based applications with amazingly few lines of code. You will also find information on Tk's novel and powerful facility for linking applications. Many other features are also described, such as Tk's hypertext and hypergraphics widgets and Tcl's facilities for procedures, list management, and subprocess execution.

For interested readers, the book also describes the C interfaces for Tcl and Tk, showing how to extend their built-in features by writing new C commands.

Upon reading this book, you will learn how to produce far more powerful X Windows System applications in a fraction of the time that used to be required.

"The main guide to Tcl is Tcl and the Tk Toolkit by John Ousterhout (Reading, MA: Addison-Wesley, 1994), the creator of Tcl."

- Unix Review

"The definitive source of information on the system is John Ousterhout's book, Tcl and the Tk Toolkit, published by Addison-Wesley."

- Linux Journal

"Overall, Ousterhout has provided an excellent overview (Tcl and the Tk Toolkit)of a very useful piece of software. If you're thinking of building or customizing a graphical user interface, you won't find many guides better than this."

- IEEE Computer

"This is an extremely well-written book, containing many figures, tables, examples, and scripts to illustrate the Tcl and Tk concepts. His presentation technique and expertise result in a superb text. I enjoyed Tcl and the Tk Toolkit and recommend it highly to anyone with any shell writing experience. Everyone who uses the X Window System will find this book helpful."

- Sys Admin

020163337XB04062001

About the Author

John K. Ousterhout is a professor of computer science at Stanford University and chairman of Electric Cloud, Inc. Ousterhout created Tcl and is well-known for his work in distributed operating systems, high-performance file systems, and user interfaces. A member of the National Academy of Engineering and recipient of the ACM Software System Award (for Tcl), he has served as professor of computer science at UC Berkeley, distinguished engineer at Sun Microsystems, and CEO of Scriptics, which he founded.

 

Ken Jones, president of Avia Training and Consulting, has spent thousands of hours teaching Tcl to IT professionals. He has more than twenty years of experience training developers through live courses and documentation. As lead instructor at Scriptics, he worked closely with John K. Ousterhout and many other key Tcl developers. Jones coauthored Practical Programming in Tcl and Tk, Fourth Edition (Prentice Hall, 2003).

Table of Contents

1. Introduction.

Introduction.

Organization of the Book.

Notation.

Pronunciation.

Versions.

2. An Overview of Tcl and Tk.

Getting Started.

Hello World with Tk.

Script Files.

Variables and Substitutions.

Control Structures.

On the Tcl Language.

Event Bindings.

Subprocesses.

Additional Features of Tcl and Tk.

Extensions and Applications.

I. THE TCL LANGUAGE.

3. Tcl Language Syntax.

Scripts, Commands, and Words

Evaluating a Command.

Variable Substitution.

Command Substitution.

Backslash Substitution.

Quoting with Double Quotes.

Quoting With Braces.

Comments.

Normal and Exceptional Returns.

More on Substitutions.
4. Variables.

Simple Variables and the Set Command.

Arrays.

Variable Substitution.

Removing Variables: Unset.

Multidimensional Arrays.

The Incr and Append Commands.

Predefined Variables.

Preview of Other Variable Facilities.
5. Expressions.

Numeric Operands.

Operators and Precedence.

Math Functions.

Substitutions.

String Manipulation.

Types and Conversions.

Precision.
6. Lists.

Basic List Structure and the Lindex Command.

Creating Lists: Concat, List, and Llength.

Modifying Lists: Linsert, Lreplace, Lrange, and Lappend.

Searching Lists: Lsearch.

Sorting Lists: Lsort.

Converting Between Strings and Lists: Split and Join.

Lists and Commands.
7. Control Flow.

The If Command.

Looping Commands: While, For, and Foreach.

Loop Control: Break and Continue.

The Switch Command.

The Eval Command.

Executing From Files: Source.
8. Procedures.

Procedure Basics: Proc and Return.

Local and Global Variables.

Defaults and Variable Numbers of Arguments.

Call By Reference: Upvar.

Creating New Control Structures: Uplevel.
9. String Manipulation.

Character Set Issues.

Glob-Style Pattern Matching.

Pattern Matching with Regular Expressions.

Using Regular Expressions for Substitutions.

Generating Strings with Format.

Parsing Strings With Scan.

Extracting Characters: String Index and String Range.

Searching and Comparison.

Length, Case Conversion, and Trimming.
10. Accessing Files.

File Names.

Basic File I/O.

Output Buffering.

Random Access to Files.

The Current Working Directory.

Manipulating File Names: Glob and File.

File Information Commands.

Errors in System Calls.
11. Processes.

Invoking Subprocesses with Exec.

I/O To and From a Command Pipeline.

Process Ids.

Environment Variables.

Terminating the Tcl Process with Exit.
12. Errors and Exceptions.

What Happens after an Error?

Generating Errors from Tcl Scripts.

Trapping Errors with Catch.

Exceptions in General.
13. Managing Tcl Internals.

Querying the Elements of an Array.

The Info Command.

Timing Command Execution.

Tracing Operations on Variables.

Renaming and Deleting Commands.

Unknown Commands.

Autoloading.
14. History.

The History List.

Specifying Events1.

Reexecuting Commands from the History List.

Shortcuts Implemented by Unknown.

Current Event Number: History Nextid.

II. WRITING SCRIPTS FOR TK.

15. An Introduction to Tk.

A Brief Introduction to X.

Widgets.

Applications, Top-Level Widgets, and Screens.

Scripts and Events.

Creating and Destroying Widgets.

Geometry Managers.

Widget Commands.

Commands for Interconnection.
16. A Tour of the Tk Widgets.

Frames.

Toplevels.

Labels.

Buttons, Checkbuttons, and Radiobuttons.

Messages.

Listboxes.

Scrollbars.

Scales.

Entries.

Menus and Menubuttons.

Other Common Options.
17. Geometry Managers: the Packer.

An Overview of Geometry Management.

Packer Basics.

The Pack Command and -Side Options.

Padding.

Filling.

Expansion.

Anchors.

Packing Order.

Hierarchical Packing.

Other Options to the Pack Command.

Other Geometry Managers in Tk.
18. Bindings.

X Events.

An Overview of the Bind Command.

Event Patterns.

Sequences of Events.

Substitutions in Scripts.

Conflict Resolution.

When are Events Processed?

Background Errors: Tkerror.

Other Uses of Bindings.
19. Canvas and Text Widgets.

Canvas Basics: Items and Types.

Manipulating Items with Identifiers and Tags.

Bindings.

Other Canvas Features.

Text Widgets.

Text Indices and Marks.

Text Tags.
20. The Selection.

Selections, Retrievals, and Targets.

Locating and Clearing the Selection.

Supplying the Selection with Tcl Scripts.
21. The Input Focus.

Focus Model: Explicit vs. Implicit.

Setting The Input Focus.

Clearing The Focus.

The Default Focus.

Shortcuts.
22. Window Managers.

Window Sizes.

Gridded Windows.

Window Positions.

Window States.

Decorations.

Window Manager Protocols.

Special Handling: Transients, Groups, and Override-Redirect.

Session Management.

A Warning about Window Managers.
23. The Send Command.

Basics.

Hypertools.

Application Names.

Security Issues.
24. Modal Interactions.

Grabs.

Keyboard Handling During Grabs.

Waiting: The Tkwait Command.
25. More on Configuration Options.

The Option Database.

Option Database Entries.

The RESOURCE_MANAGER Property and .Xdefaults File.

Priorities in the Option Database.

The Option Command.

The Configure Widget Command.
26. Odds and Ends.

Destroying Widgets.

Time Delays.

The Update Command.

Information about Widgets.

Raise and Lower.

The Tk Command: Color Models.

Variables Managed by Tk.
27. Examples.

A Procedure that Generates Dialog Boxes.

A Remote-Control Application.

III. WRITING TCL APPLICATIONS IN C.

28. Philosophy.

C vs. Tcl: Primitives.

Object Names.

Commands: Action-Oriented vs. Object-Oriented.

Representing Information.
29. Interpreters and Script Evaluation.

Interpreters.

A Simple Tcl Application.

Other Evaluation Procedures.

Deleting Interpreters.
30. Creating New Tcl Commands.

Command Procedures.

Registering Commands.

The Result Protocol.

Procedures for Managing the Result.

Clientdata and Deletion Callbacks.

Deleting Commands.

How Tcl Procedures Work.
31. Tcl_AppInit and Packages.

Tcl_AppInit.

Defining Packages.
32. Parsing.

Numbers and Booleans.

Expression Evaluation.

Manipulating Lists.
33. Exceptions.

Completion Codes.

Augmenting the Stack Trace in errorInfo.

Setting errorCode.
34. Accessing Tcl Variables.

Naming Variables.

Setting Variable Values.

Reading Variables.

Unsetting Variables.

Linking Tcl and C Variables.

Setting and Unsetting Variable Traces.

Trace Callbacks.

Whole-Array Traces.

Multiple Traces.

Unset Callbacks.

Nonexistent Variables.

Querying Trace Information.
35. Hash Tables.

Keys and Values.

Creating and Deleting Hash Tables.

Creating Entries.

Finding Existing Entries.

Searching.

Deleting Entries.

Statistics.
36. String Utilities.

Dynamic Strings.

Command Completeness.

String Matching.
37. POSIX Utilities.

Tilde Expansion.

Generating Messages.

Creating Subprocesses.

Background Processes.

IV. TK'S C INTERFACES.

38. Introduction.

What's in a Widget?

The Relationship Between Tk and Xlib.

Square: An Example Widget.

tk.h.

Design for Reusability.
39. Creating Windows.

Windows and Tk_Windows.

Creating Tk_Windows.

Setting a Window's Class.

Deleting Windows.

Basic Operations on Tk_Windows.

Class Command Procedures.

Package Initialization.

Delayed Window Creation.
40. Configuring Widgets.

Tk_ConfigureWidget.

Resource Caches.

Tk_Uids.

Other Translators.

Changing Window Attributes.

The Square Configure Procedure.

The Square Widget Command Procedure.
41. Events.

X Events.

File Events.

Timer Events.

Idle Callbacks.

Generic Event Handlers.

Invoking the Event Dispatcher.
42. Displaying Widgets.

Delayed Redisplay.

Double-Buffering with Pixmaps.

Drawing Procedures.
43. Destroying Widgets.

Basics.

Delayed Cleanup.
44. Managing the Selection.

Selection Handlers.

Claiming the Selection.

Retrieving the Selection.
45. Geometry Management.

Requesting a Size for a Widget.

Internal Borders.

Grids.

Geometry Managers.

Claiming Ownership.

Retrieving Geometry Information.

Mapping and Setting Geometry.

Writing Geometry Managers.
Appendix A. Installing Tcl and Tk.

Versions.

The Master Directory.

Retrieving Distributions with FTP.

Retrieving Distributions with Electronic Mail.

Compiling and Installing the Distributions.

Contributed Extensions.

Comp.lang.tcl newsgroup.
Index. 020163337XT04062001

Product Details

ISBN:
9780201633375
Author:
Ousterhout, John K.
Publisher:
Addison-Wesley Professional
Author:
Jones, Ken
Author:
Ousterhout, John
Location:
Reading, Mass. :
Subject:
Programming Languages - General
Subject:
Technology
Subject:
Application Software - General
Subject:
Programming languages (electronic computers)
Subject:
Tcl (computer program language)
Subject:
Tcl
Subject:
Tk toolkit
Copyright:
Edition Description:
Trade paper
Series:
Addison-Wesley professional computing series
Series Volume:
vol. 27 (1993)
Publication Date:
20090403
Binding:
Paperback
Grade Level:
Professional and scholarly
Language:
English
Illustrations:
Yes
Pages:
480
Dimensions:
9.1 x 7.3 x 1 in 771 gr

Related Subjects

Computers and Internet » Software Engineering » Programming and Languages

TCL and the TK Toolkit (Addison-Wesley Professional Computing)
0 stars - 0 reviews
$ In Stock
Product details 480 pages Addison-Wesley Professional - English 9780201633375 Reviews:
"Synopsis" by , The Tcl scripting language and the Tk toolkit - a programming environment for creating graphical user interfaces under X Windows - together represent one of the most exciting innovations in X Window System programming. Because Tcl and Tk are so easy to learn, extremely powerful, and contain so many sophisticated features, they have dramatically reduced development time for thousands of X programmers.

Written by the creator of Tcl and Tk, this book is the single authoritative resource for anyone who wants to work with this extraordinary environment. The book offers an introduction and overview of Tcl and Tk and then presents detailed instructions for script writing in Tcl and working with the Tk toolkit.

You will discover how Tk's windowing shell, wish, enables you to develop window-based applications with amazingly few lines of code. You will also find information on Tk's novel and powerful facility for linking applications. Many other features are also described, such as Tk's hypertext and hypergraphics widgets and Tcl's facilities for procedures, list management, and subprocess execution.

For interested readers, the book also describes the C interfaces for Tcl and Tk, showing how to extend their built-in features by writing new C commands.

Upon reading this book, you will learn how to produce far more powerful X Windows System applications in a fraction of the time that used to be required.

"The main guide to Tcl is Tcl and the Tk Toolkit by John Ousterhout (Reading, MA: Addison-Wesley, 1994), the creator of Tcl."

- Unix Review

"The definitive source of information on the system is John Ousterhout's book, Tcl and the Tk Toolkit, published by Addison-Wesley."

- Linux Journal

"Overall, Ousterhout has provided an excellent overview (Tcl and the Tk Toolkit)of a very useful piece of software. If you're thinking of building or customizing a graphical user interface, you won't find many guides better than this."

- IEEE Computer

"This is an extremely well-written book, containing many figures, tables, examples, and scripts to illustrate the Tcl and Tk concepts. His presentation technique and expertise result in a superb text. I enjoyed Tcl and the Tk Toolkit and recommend it highly to anyone with any shell writing experience. Everyone who uses the X Window System will find this book helpful."

- Sys Admin

020163337XB04062001

"Synopsis" by , The Tcl scripting language and the Tk toolkit - a programming environment for creating graphical user interfaces under X Windows - together represent one of the most exciting innovations in X Window System programming. Because Tcl and Tk are so easy to learn, extremely powerful, and contain so many sophisticated features, they have dramatically reduced development time for thousands of X programmers.

Written by the creator of Tcl and Tk, this book is the single authoritative resource for anyone who wants to work with this extraordinary environment. The book offers an introduction and overview of Tcl and Tk and then presents detailed instructions for script writing in Tcl and working with the Tk toolkit.

You will discover how Tk's windowing shell, wish, enables you to develop window-based applications with amazingly few lines of code. You will also find information on Tk's novel and powerful facility for linking applications. Many other features are also described, such as Tk's hypertext and hypergraphics widgets and Tcl's facilities for procedures, list management, and subprocess execution.

For interested readers, the book also describes the C interfaces for Tcl and Tk, showing how to extend their built-in features by writing new C commands.

Upon reading this book, you will learn how to produce far more powerful X Windows System applications in a fraction of the time that used to be required.

"The main guide to Tcl is Tcl and the Tk Toolkit by John Ousterhout (Reading, MA: Addison-Wesley, 1994), the creator of Tcl."

- Unix Review

"The definitive source of information on the system is John Ousterhout's book, Tcl and the Tk Toolkit, published by Addison-Wesley."

- Linux Journal

"Overall, Ousterhout has provided an excellent overview (Tcl and the Tk Toolkit)of a very useful piece of software. If you're thinking of building or customizing a graphical user interface, you won't find many guides better than this."

- IEEE Computer

"This is an extremely well-written book, containing many figures, tables, examples, and scripts to illustrate the Tcl and Tk concepts. His presentation technique and expertise result in a superb text. I enjoyed Tcl and the Tk Toolkit and recommend it highly to anyone with any shell writing experience. Everyone who uses the X Window System will find this book helpful."

- Sys Admin

020163337XB04062001

spacer
spacer
  • back to top
Follow us on...




Powell's City of Books is an independent bookstore in Portland, Oregon, that fills a whole city block with more than a million new, used, and out of print books. Shop those shelves — plus literally millions more books, DVDs, and gifts — here at Powells.com.