Muutke küpsiste eelistusi

Tcl and Tk Programming for the Absolute Beginner New edition [Pehme köide]

  • Formaat: Paperback / softback, 384 pages, kõrgus x laius x paksus: 226x185x30 mm, kaal: 776 g, illustrations
  • Ilmumisaeg: 12-Oct-2007
  • Kirjastus: Delmar Cengage Learning
  • ISBN-10: 1598634380
  • ISBN-13: 9781598634389
Teised raamatud teemal:
  • Pehme köide
  • Hind: 46,51 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Tavahind: 58,14 €
  • Säästad 20%
  • Raamatu kohalejõudmiseks kirjastusest kulub orienteeruvalt 2-4 nädalat
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Tellimisaeg 2-4 nädalat
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 384 pages, kõrgus x laius x paksus: 226x185x30 mm, kaal: 776 g, illustrations
  • Ilmumisaeg: 12-Oct-2007
  • Kirjastus: Delmar Cengage Learning
  • ISBN-10: 1598634380
  • ISBN-13: 9781598634389
Teised raamatud teemal:
Tcl/Tk is enjoying a resurgence of popularity and interest in the computing community due to the fact that it is relatively easy to learn, powerful, fast, permits rapid development, and runs on all computing platforms. Until now, there has not been a guide book available that teaches Tcl/Tk to those with little or no programming experience. Covering the newest versions of Tcl and Tk, Tcl and Tk Programming for the Absolute Beginner teaches beginning and novice programmers concepts such as loops, conditional execution, input and output, and events, and shows readers how to implement these concepts using the grammar and syntax of the Tcl language. As part of the for the absolute beginner (TM) series, the book teaches all the concepts through the creation of simple computer games. Not only will this "learn by doing" approach provide you with an instant sense of accomplishment, but it's also a fun way to learn. Plus, in addition to learning Tcl and Tk, you'll also learn the basics of computer programming, so you'll have a solid foundation from which you can confidently jump to other programming languages.
Introducing TCL and TK
1(22)
What Is Tcl?
1(1)
What Is Tk?
2(1)
What Makes Tcl and Tk Different?
3(2)
Why Use Tcl and Tk?
5(1)
Getting Tcl and Tk
6(17)
Installing Tcl and Tk on Linux
6(1)
Installing Tcl and Tk on Windows
7(6)
Installing Tcl and Tk on OS X
13(5)
Installing Tcl and Tk from Source
18(5)
Running TCL Programs
23(10)
Invoking the Interpreter
23(2)
Executing Tcl Commands Interactively
25(2)
Creating Tcl Command Files
27(6)
Doing Mathematics
33(26)
Guessing Numbers
33(1)
Language Fundamentals
34(14)
Comments
35(1)
Commands
36(2)
Command Substitution
38(3)
Grouping
41(1)
Grouping with Double Quotes
42(1)
Grouping with Braces
42(1)
Variables
43(3)
Procedures
46(2)
Getting User Input
48(2)
Basic Mathematical Operators
50(2)
Conditional Execution: The if Command
52(4)
Analyzing the Guessing Numbers Program
56(3)
Looking at the Code
56(1)
Understanding the Code
57(1)
Modifying the Code
57(2)
Strings, Strings, Everywhere Strings!
59(28)
Mad Libs
59(1)
The string Command
60(2)
Comparing Strings
62(6)
The compare Option
63(2)
The equal Option
65(1)
The match Option
66(2)
Inspecting Strings
68(8)
The length and bytelength Options
68(1)
The index Option
68(1)
The first and last Options
69(1)
The range Option
70(1)
The replace Option
71(2)
The is Option
73(3)
Modifying Strings
76(2)
Repeating Strings
76(1)
Switching Case
76(1)
Trimming Strings
77(1)
Appending Strings
78(1)
Looping Commands
78(5)
Looping with the while Command
79(2)
Iterative Loops: The for Command
81(2)
Analyzing Mad Libs
83(4)
Looking at the Code
83(1)
Understanding the Code
84(1)
Modifying the Code
85(2)
Working With Lists
87(28)
Playing Blackjack
87(1)
What Is a Tcl List?
88(1)
Creating Lists
89(1)
Appending Lists
90(1)
Merging Lists
90(1)
Accessing List Elements
91(3)
Accessing Specific List Elements
92(2)
Modifying Lists
94(2)
Inserting New Elements
94(1)
Replacing Elements
95(1)
Searching and Sorting Lists
96(6)
Searching 101
96(3)
Sorting
99(3)
Additional List Operations
102(2)
Strings to Lists
102(1)
Lists to Strings
103(1)
Looping with the foreach Command
104(1)
Conditional Execution: The switch Command
105(3)
Interrupting Loop Execution
108(2)
Analyzing Playing Blackjack
110(5)
Looking at the Code
110(2)
Understanding the Code
112(1)
Modifying the Code
113(2)
Creating and Using Arrays
115(18)
What's the Word?
115(1)
The Differences Between Arrays and Lists
116(1)
Working with Arrays
117(7)
Getting Information about Arrays
118(2)
Converting Lists to Arrays
120(1)
Converting Arrays to Lists
121(1)
Retrieving Array Elements
122(1)
Searching Arrays
123(1)
Grace Under Pressure
124(4)
Dealing with Exceptions: The catch Command
124(2)
Raising Errors: The error Command
126(2)
Examining Variables
128(1)
Analyzing What's the Word?
129(4)
Looking at the Code
129(1)
Understanding the Code
130(1)
Modifying the Code
131(2)
Writing TCL Procedures
133(12)
Fortune Teller
133(1)
What Is a Procedure?
134(1)
Defining Procedures
135(4)
Defining Procedures with Default Values
136(1)
Defining Procedures with Variable Arguments
137(2)
Understanding Variable and Procedure Scope
139(3)
Analyzing Fortune Teller
142(3)
Looking at the Code
142(1)
Understanding the Code
143(1)
Modifying the Code
144(1)
Accessing Files and Directories
145(26)
Word Search
145(2)
Opening and Closing Files
147(4)
Reading Files
151(5)
Using gets for File Input
151(2)
Using read for File Input
153(3)
Writing Files
156(3)
Using puts for Output
156(1)
Formatting Output with format
157(2)
Moving the File Pointer: Random Access I/O
159(6)
Working with Directories
164(1)
Analyzing Word Search
165(6)
Looking at the Code
165(2)
Understanding the Code
167(2)
Modifying the Code
169(2)
Understanding Tk Programming
171(10)
Hello, Tk World!
171(2)
Components of a Tk Application
173(1)
Naming Tk Widgets
174(1)
Understanding Event-Driven Programming
175(1)
Widget Options
175(2)
Surveying Tk's Widgets
177(4)
Button Widgets
181(28)
Memory Test
181(2)
Packed and Ready: The pack Geometry Manager
183(2)
Button, Button, Who's Got the Button?
185(12)
Plain Vanilla Buttons
186(3)
Check Buttons
189(5)
Radio Buttons
194(3)
A Smorgasbord of Menus
197(3)
Creating a Basic Menu Bar
198(2)
Binding Commands to Events
200(2)
Coloring Your World
202(1)
Analyzing Memory Test
203(6)
Looking at the Code
203(3)
Understanding the Code
206(2)
Modifying the Code
208(1)
Windows, Frames, and Messages
209(30)
Tic-Tac-Toe
209(2)
On the Grid: The Grid Geometry Manager
211(14)
Relative Positioning
211(3)
Absolute Positioning
214(1)
Positioning and Padding
215(3)
Spanning Rows and Columns
218(1)
Operating on Rows and Columns
219(6)
I've Been Framed!
225(4)
Frames
226(1)
Labelframes
227(2)
Labeling the Contents
229(1)
Creating New Windows
229(3)
Did You Get the Message?
232(2)
Analyzing Tic-Tac-Toe
234(5)
Looking at the Code
234(3)
Understanding the Code
237(1)
Modifying the Code
238(1)
Entry and Spinbox Widgets
239(12)
Mad Libs Revista
239(2)
Features of the Entry and Spinbox Widgets
241(1)
Entry and Spinbox Attributes
241(2)
Validating User Input
243(2)
Building a Better Message Box
245(1)
Analyzing Mad Libs Revista
246(5)
Looking at the Code
246(2)
Understanding the Code
248(2)
Modifying the Code
250(1)
Listbox Widgets
251(20)
Matching Lists
251(2)
Creating a Listbox
253(3)
Selecting Listbox Content
256(8)
Setting the Selection Mode
257(1)
Determining the Selected Items
258(3)
Selecting Items Programmatically
261(3)
Analyzing Matching Lists
264(7)
Looking at the Code
264(3)
Understanding the Code
267(2)
Modifying the Code
269(2)
Scrollbar, Scale, and Text Widgets
271(34)
Word Search
271(1)
Using the Scrollbars to Move the Viewport
272(8)
Simple Scrolling
273(5)
Probing the scrollbar Protocol
278(2)
Using the scale Widget
280(2)
Using the Text Widget
282(1)
Getting Started
282(9)
Adding a Scrollbar
283(4)
Adding and Populating a Menu
287(4)
Using Marks and Tags
291(8)
Text Indices
291(3)
Hitting the Mark
294(3)
Tag, You're It!
297(2)
Analyzing Word Search
299(6)
Looking at the Code
299(3)
Understanding the Code
302(2)
Modifying the Code
304(1)
The Canvas Widget
305(40)
Got the Picture?
305(3)
The Canvas Widget
308(30)
The Coordinate System
309(2)
Using Canvas Objects
311(27)
Analyzing Got the Picture?
338(7)
Looking at the Code
338(5)
Understanding the Code
343(1)
Modifying the Code
344(1)
Appendix A TCL Command Summary 345(4)
Appendix B TK Command Summary 349(2)
Index 351


A professional technical writer by trade, Kurt Wall has worked for companies as diverse as Virtual Solutions Inc. to Caldera Systems, where he created the documentation for the OpenLinux eServer and eDesktop and associated tools. After working for TimeSys Corporation in Pittsburgh, Pennsylvania, where he wrote most of the Linux documentation for TimeSys's embedded Linux products and helped customers use TimeSys Linux Link product, Kurt moved to Panasas, Inc., where he provides thirdlevel technical support for Panasas highspeed parallel storage products for the clustered and parallel computing industry. Kurt is the author of Red Hat Linux Networking and System Administration; Linux Programming Unleashed, Second Edition; Linux Programming by Example; and The GCC Book. He's also the co-author of Red Hat Linux Weekend Crash Course, 3rd Edition. He has contributed to more than 15 other books covering topics such as system administration, performance tuning, clustering, and programming.