1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
|
This is the 2.0 beta4 version of TclTutor.tcl.
See the NOTICE file for information about licensing.
DESCRIPTION
This is a package designed to teach the Tcl programming language in
a quick and easy manner. The goal is to teach the minimal amount of Tcl
syntax, commands and options that are necessary to write useful programs.
You are encouraged to use the man pages and books to augment this
tutorial.
This version covers all of the commands in the Tcl language, as of
version 7.4, and most of the commands added in later Tcl revisions.
REQUIREMENTS
To use this package you'll need:
Unix/Linux:
Tcl/Tk: version 8.0 or more recent.
X Windows
Useful: tkman
MS Windows:
Tcl/Tk: Version 8.0 or more recent.
Win 95, Win/NT
Macintosh:
Tcl: Version 8.0 or more recent.
MacOS, OSX
NOTE: As of the 2.0 beta4, it's uncertain how much of TclTutor works
correctly on the Mac.
INSTALLATION
Unix Systems Installation:
1) Untar the distribution file.
2) $> cd TclTutor
3) Either run TclTutor.tcl from this directory, or copy the files
to a central directory, or add that directory to your path.
Windows Systems Installation:
1) run InstlXXX.exe
Where XXX is a release number like 2b1.
2) Click "Setup" in the first Winzip window.
3) Decide where you wish to install TclTutor.
4) When you are happy with the choices, click the "Install" Button
5) Click the "Exit/Done" button on the kickstarter window.
6) Wait for the winzip window to cleanup and exit.
7) The TclTutor.tcl program can be started via the [Run] menubutton,
or via File Explorer.
Macintosh:
1) Extract the TutorXXX.zip file with Stuffit Expander or a similar
program.
2) Drag the TclTutor icon to the Wish Drag&Drop Tclets icon to put the
stub onto the TclTutor script.
3) The TclTutor script should now be runnable.
RESOURCES
The definitive source for Tcl/Tk information is the Scriptics web site:
http://www.scriptics.com
Also Recommended is to get the Tom Phelps' tkman program, which can
be used to access man pages hypertextually from the program.
The site for these is:
ftp://ftp.cs.berkeley.edu/ucb/people/phelps/tcltk/tkman.tar.Z
ftp://ftp.cs.berkeley.edu/ucb/people/phelps/tcltk/rman.tar.Z
OTHER READING:
TITLE: AUTHOR: PUBLISHER
Tcl/Tk for Real Programmers Clif Flynt Academic Press
Practical Programming in Tcl and Tk Brent Welch Prentice Hall
Exploring Expect Don Libes O'Reilly
Interactive Web Applications in Tcl/tk Mike Doyle/Hattie Schroeder
Academic Press
Tcl and the Tk Toolkit John K. Ousterhout Addison Wesley
DISCLAIMER
I've tried to make these lessons accurate and complete enough to be
useful, but I won't guarantee that I've succeeded.
This code has been tested under SunOs 4.1.3, Linux, Windows NT, and Win
95. I expect it to work on those systems.
REQUEST
Please send me mail if:
1) If you find an error in a lesson
2) You feel some description is too turgid.
3) You've created an error in the code window and *not* gotten the
correct line highlighted (send me the code that generated this error,
also, please.)
4) You want to tell me what a wonderful learning experience this was.
5) You successfully (or otherwise) run this package on a system other
than the ones I have access to for testing.
Clif Flynt
clif@cflynt.com
http://www.msen.com/~clif
|