• Complain

Paul Raines - Tcl/Tk in A Nutshell

Here you can read online Paul Raines - Tcl/Tk in A Nutshell full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 1999, publisher: OReilly Media, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Paul Raines Tcl/Tk in A Nutshell

Tcl/Tk in A Nutshell: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Tcl/Tk in A Nutshell" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

The Tcl language and Tk graphical toolkit are simple and powerful building blocks for custom applications. The Tcl/Tk combination is increasingly popular because it lets you produce sophisticated graphical interfaces with a few easy commands, develop and change scripts quickly, and conveniently tie together existing utilities or programming libraries.

One of the attractive features of Tcl/Tk is the wide variety of commands, many offering a wealth of options. Most of the things youd like to do have been anticipated by the languages creator, John Ousterhout, or one of the developers of Tcl/Tks many powerful extensions. Thus, youll find that a command or option probably exists to provide just what you need.

And thats why its valuable to have a quick reference that briefly describes every command and option in the core Tcl/Tk distribution as well as the most popular extensions. Keep this book on your desk as you write scripts, and youll be able to find almost instantly the particular option you need.

Most chapters consist of alphabetical listings. Since Tk and mega-widget packages break down commands by widget, the chapters on these topics are organized by widget along with a section of core commands where appropriate. Contents include:

  • Core Tcl and Tk commands and Tk widgets
  • C interface (prototypes)
  • Expect
  • [incr Tcl] and [incr Tk]
  • Tix
  • TclX
  • BLT
  • Oratcl, SybTcl, and Tclodbc

Paul Raines: author's other books


Who wrote Tcl/Tk in A Nutshell? Find out the surname, the name of the author of the book and a list of all author's works by series.

Tcl/Tk in A Nutshell — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Tcl/Tk in A Nutshell" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Tcl/Tk in a Nutshell
Paul Raines
Jeff Tranter
Published by OReilly Media

Beijing Cambridge Farnham Kln Sebastopol Tokyo Preface This book is about - photo 1

Beijing Cambridge Farnham Kln Sebastopol Tokyo

Preface

This book is about Tcl, the scripting language developed by John Ousterhout. Tcl stands for tool command language and was originally designed as a simple scripting language interpreter that could be embedded inside applications written in the C language. With the addition of the Tk graphical toolkit and a host of other language extensions supporting such features as graphics, relational databases, and object-oriented programming, Tcl has become a popular programming language for developing applications in its own right. The freely available Tcl language interpreter runs on many computer platforms, including most Unix-compatible systems, Microsoft Windows, and Apple Macintosh.

Tcl/Tk in a Nutshell is a quick reference for the basic commands of Tcl, Tk, and several other popular Tcl language extensions. As with other books in O'Reilly's "In a Nutshell" series, this book is geared toward users who know what they want to do but just can't remember the right command or option. For subtle details, you will sometimes want to consult the official Tcl reference documentation, but for most tasks you should find the answer you need in this volume. We hope that this guide will become an invaluable desktop reference for the Tcl user.

Conventions

This desktop quick reference uses the following typographic conventions:

Italic

Used for commands, methods, functions, programs, and options. All terms shown in italic are typed literally. Italic is also used for filenames and URLs, and to highlight terms under discussion.

Constant width

Used for code in program listings and for data structures and values to be entered exactly as shown. Also used for special variables, global variables, options showing resource and class names, and subwidget names.

Constant width italic

Used to show arguments, options, and variables that should be replaced with user-supplied values.

[ ]

Surround optional elements in a description of syntax. Note that square braces are also a commonly used Tcl language construct and appear in some Tcl program examples, in which case they are part of the Tcl code.

|

Used in syntax descriptions to separate items for which only one alternative may be chosen at a time.

...

Indicates that the preceding item may be repeated as many times as desired.

Note

The owl symbol is used to designate a note.

Warning

The turkey symbol is used to designate a warning.

Contact O'Reilly & Associates

We have tested and verified all of the information in this book to the best of our ability, but you may find that features have changed (or even that we have made mistakes!). Please let us know about any errors you find, as well as your suggestions for future editions, by writing to us at the following address:

O'Reilly & Associates, Inc.
101 Morris Street
Sebastopol, CA 95472
1-800-998-9938 (in the U.S. or Canada)
1-707-829-0515 (international/local)
1-707-829-0104 (FAX)

You can also send us messages electronically. To be put on a mailing list or request a catalog, send email to:

To ask technical questions or comment on the book, send email to:

About This Book

When Jeff Tranter first started with Tcl sometime around 1992, he felt the need for a simple language quick-reference card to help jog his memory when programming. He created a simple one-page cheat sheet that listed all of the Tcl language commands. In the spirit of freely sharing with other users, he uploaded his quick reference to one of the Tcl archive sites.

Some time later, Paul Raines created a nice quick reference for the commands provided by the Tk toolkit. Again, initially this was one double-sized page in length.

Inspired by the excellent Perl 5 Pocket Reference by Johan Vromans (published by O'Reilly & Associates), Paul combined the Tcl and Tk references into a small booklet of about 40 half-size pages, and made it freely available on the Internet. The current version is now over 80 pages in length and can also be purchased from O'Reilly as the Tcl/Tk Pocket Reference .

After finishing O'Reilly's first book on Tcl/Tk, Tcl/Tk Tools (by Mark Harrison et al.), O'Reilly editor Andy Oram thought about doing a Tcl reference book. So he approached us about expanding our work into a full-blown reference on Tcl, Tk, and all of the popular language extensions. Thus, the one-page Tcl cheat sheet that Jeff created for his own use has now grown into a 450-page book. We hope that you are happy with the result and find it a useful reference.

Acknowledgments

A motivational speaker once said that the formula for a successful manager was to give your people the tools they need to do the job and stay out of their way. Our editor, Andy Oram, did a great job of keeping us on track but generally staying out of our way. As the first Nutshell book to use SGML text-processing tools developed in-house, Tcl/Tk in a Nutshell had some teething pains but we were able to get the job done with help from the O'Reilly tools group.

Special thanks go to the reviewers of the first draft of this book: Allan Brighton, De Clarke, Robert Gray, Cameron Laird, Don Libes, Michael McLennan, Wayne Miller, Tom Poindexter, and Mark Roseman. Their many useful comments helped make this a better book.

One of the reviewers, Tom Poindexter, went beyond the call of duty. He suggested that we add a chapter on Tcl programming hints, and even volunteered to write it for us.

Paul would like to thank his wife, Deborah, for her understanding and patience when he disappeared into "computerland."

Jeff would like to thank his familyVeronica, Jennifer, and Jasonfor bearing with him while he wrote yet another book, taking more than his share of time on the computer.

Chapter 1. Introduction

This chapter presents a brief history of and an introduction to the Tcl language and describes how this book is organized.

What Is Tcl?

In the early 1980s John Ousterhout, then at the University of California at Berkeley, was working with a group that developed hardware design tools. They found that they kept inventing a new scripting language with each new tool they developed. It was always added as an afterthought and poorly implemented. John decided to create a general-purpose scripting language that could be reused when developing new tools. He called the language Tcl, for tool command language, made it freely available for download, and presented it at the Winter 1990 USENIX conference. It soon became popular, with an estimated 50 Tcl applications written or in development one year later.

One of the attendees at Ousterhout's presentation, Don Libes, saw the applicability of Tcl to a problem he was working on. Within a few weeks he developed the first version of Expect, which became the first killer application for Tcl, driving many people to install Tcl who might have otherwise ignored it.

Ousterhout's philosophy is to embed a scripting language inside applications. Combining the advantages of a compiled language like C (portability, speed, access to operating system functions) with those of a scripting language (ease of learning, runtime evaluation, no compilation) gives an overall reduction in development time and opportunities for creating small, reliable, and reusable software components. An application with an embedded Tcl interpreter can be extended and customized by the end user in countless ways.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Tcl/Tk in A Nutshell»

Look at similar books to Tcl/Tk in A Nutshell. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Tcl/Tk in A Nutshell»

Discussion, reviews of the book Tcl/Tk in A Nutshell and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.