Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Tcl/Tk in a Nutshell
Preface
Conventions
Contact O'Reilly & Associates
About This Book
Acknowledgments
1. Introduction
What Is Tcl?
Structure of This Book
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
Control Statements
File Manipulation
Tcl Interpreter Information
Lists
Arrays
Strings
Input/Output
System Interaction
Command History
Multiple Interpreters
Packages
Miscellaneous 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
Example
Command-Line Options
Environment Variable
Special Variables
Group Listing of Tk Commands
Widgets
Geometry Management
Event Handling
Focus
Dialogs
Miscellaneous
Widget Overview
Standard Widget Options
Widget Commands
button
canvas
checkbutton
entry
frame
label
listbox
menu
menubutton
message
radiobutton
scale
scrollbar
text
toplevel
Utility Commands
bell
bind
bindtags
clipboard
destroy
event
focus
font
grab
grid
image
lower
option
pack
place
raise
selection
send
tk
tkwait
tk_
winfo
wm
4. The Tcl C Interface
Constants
Data Types
Group Listing of Functions
Tcl Objects
Interpreters and Script Evaluation
Creating New Tcl Commands
Initialization and Packages
Parsing
Exceptions
Accessing Tcl Variables
Hash Tables
String Utilities
POSIX Utilities
Input/Output
Notifier and Events
Miscellaneous
Alphabetical Summary of Functions
5. The Tk C Interface
Constants
Data Types
Group Listing of Functions
Windows
Configuring Widgets
Bitmaps and Photo Images
Events
Displaying Widgets
Canvases
Text
The Selection
Geometry Management
Application Startup and Initialization
Error Handling
Color
Cursors
Miscellaneous
Alphabetical Summary of Functions
6. Expect
Overview
Example
Command-Line Options
Environment Variables
Special Variables
Grouped Summary of Commands
Process Interaction
Utility Commands
Synonyms
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]
Basic Class Definition
Special Variables
Group Listing of Commands
Classes
Objects
Miscellaneous
Example
Alphabetical Summary of Commands
className
objName
body
class
code
configbody
delete
ensemble
find
itcl_class
itcl_info
local
Scope
8. [incr Tk]
Basic Structure of a Mega-widget
Special Variable
Methods and Variables
Public Methods
Protected Methods
Protected Variables
Alphabetical Summary of Commands
usual
9. Tix
Tix Overview
Special Variables
Group Listing of Tix Commands
Mega-widgets
Standard Widgets
Core 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
Display Items
Image Items
Imagetext Items
Text Items
Window Items
Tix Standard Widgets
Grid
HList
InputOnly
NoteBookFrame
TList
Tix Core Commands
tix
CallMethod
ChainMethod
Class
Descendants
Destroy
DisableAll
DisplayStyle
EnableAll
Form
GetBoolean
GetInt
Mwm
PopGrab
PushGrab
WidgetClass
Tix Extensions to Tk image Command
image
image
10. TclX
Special Variables
Group Listing of Commands
General Commands
Debugging and Development Commands
Unix Access Commands
File Commands
File Scanning Commands
Math Commands
List Manipulation Commands
Keyed List Commands
String and Character Manipulation Commands
XPG/3 Message Catalog Commands
Help Commands
Library and Package 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
Environment Variable
Special Variables
Group Listing of Commands
Graphical Commands
Numerical Data Commands
Tile Widget Commands
Utility Commands
Alphabetical Summary of Commands
barchart
beep
bgexec
bitmap
bltdebug
busy
container
cutbuffer
drag&drop
graph
hierbox
htext
spline
stripchart
table
tabset
tile
vector
watch
winop
12. Oratcl
Overview
Example
Environment Variables
Special Variables
Group Listing of Commands
Database Server Setup Commands
Data Manipulation Commands
Alphabetical Summary of Commands
oraautocom
orabindexec
orabreak
oracancel
oraclose
oracols
oracommit
orafetch
oralogoff
oralogon
oraopen
oraplexec
orapoll
orareadlong
oraroll
orasql
orawritelong
13. Sybtcl
Overview
Example
Environment Variables
Special Variables
Group Listing of Commands
Database Server Setup Commands
Data Manipulation Commands
Alphabetical Summary of Commands
sybcancel
sybclose
sybcols
sybconnect
sybnext
sybpoll
sybreadtext
sybretval
sybsql
sybuse
sybwritetext
14. Tclodbc
Overview
Group Listing of Commands
Connection and Configuration Commands
Data Manipulation Commands
Statement Commands
Summary of Commands
database
database-id
statement-id
15. Hints and Tips for the Tcl Programmer
Think Commands, Not Statements
Comments Are Treated as Commands
A Symbolic Gesture
Lists Are Strings, but Not All Strings Are Lists
Indirect References
Executing Other Programs
When Is a Number Not a Number?
Quoting and More Quoting
Write Once, Run Where?
Filenames and Pathnames
End of Line Conventions
Determining Platform Specifics
Scanning and For matting Binary Data
Common Tk Errors
Global Scope for -variable and -textvariable
The -command String Must Be a Tcl List
Use update to Refresh Widgets and for Event Processing
Use the Source, Luke!
A. Tcl Resources
Web Sites
General
Tcl/Tk Extensions
Usenet Newsgroups
Books
Mailing Lists
Index
About the Authors
Colophon
Copyright
← Prev
Back
Next →
← Prev
Back
Next →