Book description
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 you'd like to do have been anticipated by the language's creator, John Ousterhout, or one of the developers of Tcl/Tk's many powerful extensions. Thus, you'll find that a command or option probably exists to provide just what you need.And that's why it's 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 you'll 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
Publisher resources
Table of contents
-
Tcl/Tk in a Nutshell
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
- Preface
- 1. Introduction
-
2. Tcl Core Commands
- Overview
- Basic Language Features
- Command-Line Options
- Environment Variables
- Special Variables
- Backslash Substitutions
- Operators and Math Functions
- Regular Expressions
- Pattern Globbing
- Predefined I/O Channel Identifiers
- Group Listing of Commands
-
Alphabetical Summary of Commands
- after
- append
- array
- auto_execok
- auto_load
- auto_mkindex
- auto_reset
- bgerror
- binary
- break
- case
- catch
- cd
- clock
- close
- concat
- continue
- eof
- error
- eval
- exec
- exit
- expr
- fblocked
- fconfigure
- fcopy
- file
- fileevent
- flush
- for
- foreach
- format
- gets
- glob
- global
- history
- if
- incr
- info
- interp
- join
- lappend
- lindex
- linsert
- list
- llength
- load
- lrange
- lreplace
- lsearch
- lsort
- namespace
- open
- package
- pid
- pkg_mkIndex
- proc
- puts
- pwd
- read
- regexp
- regsub
- rename
- return
- scan
- seek
- set
- socket
- source
- split
- string
- subst
- switch
- tell
- time
- trace
- unknown
- unset
- update
- uplevel
- upvar
- variable
- vwait
- while
- 3. Tk Core Commands
- 4. The Tcl C Interface
- 5. The Tk C Interface
-
6. Expect
- Overview
- Example
- Command-Line Options
- Environment Variables
- Special Variables
- Grouped Summary of Commands
-
Alphabetical Summary of Commands
- close
- debug
- disconnect
- exit
- exp_continue
- exp_getpid
- exp_internal
- exp_open
- exp_pid
- expect
- expect_after
- expect_background
- expect_before
- expect_tty
- expect_user
- expect_version
- fork
- inter_return
- interact
- interpreter
- log_file
- log_user
- match_max
- overlay
- parity
- remove_nulls
- send
- send_error
- send_log
- send_tty
- send_user
- sleep
- spawn
- strace
- stty
- system
- timestamp
- trap
- wait
- 7. [incr Tcl]
- 8. [incr Tk]
-
9. Tix
- Tix Overview
- Special Variables
- Group Listing of Tix Commands
- Tix Mega-widget Overview
-
Tix Mega-widgets
- Balloon
- ButtonBox
- CheckList
- ComboBox
- Control
- DialogShell
- DirList
- DirSelectBox
- DirSelectDialog
- DirTree
- ExFileSelectBox
- ExFileSelectDialog
- FileComboBox
- FileEntry
- FileSelectBox
- FileSelectDialog
- LabelEntry
- LabelFrame
- LabelWidget
- ListNoteBook
- Meter
- NoteBook
- OptionMenu
- PanedWindow
- PopupMenu
- Primitive
- ScrolledGrid
- ScrolledHList
- ScrolledListBox
- ScrolledText
- ScrolledTList
- ScrolledWidget
- ScrolledWindow
- Select
- Shell
- StackWindow
- StdButtonBox
- StdDialogShell
- Tree
- VStack
- VTree
- Tix Standard Widgets Overview
- Tix Standard Widgets
- Tix Core Commands
- Tix Extensions to Tk image Command
-
10. TclX
- Special Variables
- Group Listing of Commands
-
Alphabetical Summary of Commands
- abs
- acos
- alarm
- apropos
- asin
- atan
- atan2
- auto_commands
- auto_load_file
- auto_packages
- bsearch
- buildpackageindex
- catclose
- catgets
- catopen
- ccollate
- cconcat
- ceil
- cequal
- chgrp
- chmod
- chown
- chroot
- cindex
- clength
- cmdtrace
- commandloop
- convert_lib
- cos
- cosh
- crange
- csubstr
- ctoken
- ctype
- dirs
- double
- dup
- echo
- edprocs
- execl
- exp
- fcntl
- flock
- floor
- fmod
- for_array_keys
- for_file
- for_recursive_glob
- fork
- fstat
- ftruncate
- funlock
- help
- helpcd
- helppwd
- host_info
- hypot
- id
- infox
- int
- intersect
- intersect3
- keyldel
- keylget
- keylkeys
- keylset
- kill
- lassign
- lcontain
- lempty
- lgets
- link
- lmatch
- loadlibindex
- log
- log10
- loop
- lrmdups
- lvarcat
- lvarpop
- lvarpush
- mainloop
- max
- min
- nice
- pipe
- popd
- pow
- profile
- profrep
- pushd
- random
- read_file
- readdir
- recursive_glob
- replicate
- round
- saveprocs
- scancontext
- scanfile
- scanmatch
- searchpath
- select
- showproc
- signal
- sin
- sinh
- sleep
- sqrt
- sync
- system
- tan
- tanh
- tclx_errorHandler
- times
- translit
- try_eval
- umask
- union
- wait
- write_file
- 11. BLT
- 12. Oratcl
- 13. Sybtcl
- 14. Tclodbc
- 15. Hints and Tips for the Tcl Programmer
- A. Tcl Resources
- Index
- About the Authors
- Colophon
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
Product information
- Title: Tcl/Tk in a Nutshell
- Author(s):
- Release date: March 1999
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596555795
You might also like
book
C++ In a Nutshell
To-the-point, authoritative, no-nonsense solutions have always been a trademark of O'Reilly books. The In a Nutshell …
book
Tcl/Tk, 3rd Edition
Newly updated with over 150 pages of material on the latest Tcl extensions, Tcl/Tk: A Developer’s …
book
The GNU Make Book
GNU Make Book is a practical, thorough guide to GNU Make basics, solutions, and advanced uses.
book
Extreme C
Push the limits of what C - and you - can do, with this high-intensity guide …