文件名称:
TclTk 8.5 Programming Cookbook.pdf
开发工具:
文件大小: 3mb
下载次数: 0
上传时间: 2019-08-31
详细说明:With over 100 recipes, this Cookbook is ideal for both beginners and advanced Tcl/Tk programmers. From the basics to creating applications, it’s full of indispensable tips and tricks to make the most of the language. Overview The quickest way to solve your problems with Tcl/Tk 8. Understand the basics and fundamentals of the Tcl/Tk 8 programming language Learn graphical User Interface development with the Tcl/Tk 8 Widget set Get a thorough and detailed understanding of the concepts with a real-world address book application Each recipe is a carefully organized sequence of instructions to efficiently learn the features and capabilities of the Tcl/Tk 8 language What you will learn from this book Expand your Tcl/Tk abilities by gaining in-depth knowledge of the core commands Learn efficient programming by using control constructs in your program Handle numerous types of string expressions by performing formatting, searches, and advanced manipulations on them Gain expertise in using lists with examples teaching you the various available operations Demystify the Tcl Dictionary and learn how it can be a viable substitute for a third-party database Perform various operations on the dictionary elements in both single and multiple layer dictionaries Create, manage, and empower your Graphical User Interface with Tk window management, to develop attractive applications Ease your file system access with an in-depth study of File operations Perform advanced error trapping and recovery with error handling commands in Tcl Approach This book provides a step-by-step approach to the Tcl/Tk language with the help of re-usable examples and images. It is a series of carefully organized, easy-to-follow, standalone recipes to solve your queries. Whether you go through the recipes chapter-wise or pick up any recipe randomly, you will find clear and complete explanation of the task covered in the recipe. Who this book is written for If youTcl/Tk 8.5 Programming Cookbook
Copyright 2011 Packt Publishing
All rights reserved. No part of this book may be reproduced stored in a retrieval system
or transmitted in any form or by any means, without the prior written permission of the
publisher, except in the case of brief quotations embedded in critical articles or reviews
Every effort has been made in the preparation of this book to ensure the accuracy of the
iformation presented. However, the information contained in this book is sold without
warranty, either express or implied. Neither the author, nor Packt Publishing, and its
dealers and distributors will be held liable for any damages caused or alleged to be
caused directly or indirectly by this book
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals
However, Packt Publishing cannot guarantee the accuracy of this information
First published: February 2011
Production reference: 1080211
Published by Packt Publishing Ltd
32 Lincoln road
Olton
Birmingham, B27 6PA, UK
SBN9781849512985
www.packtpub.com
Cover Image by Asher Wishkerman(a. wishkermanampic de)
Credits
Auth
Editorial team leade
Bert Wheeler
Aanchal Kumar
Reviewers
Project Team Leader
Clif Flynt
Ashwin Shetty
」. Kreh bie
Project Coordinate
Acquisition Editor
Joel goveya
Steven Wilding
Development Editor
Jacqueline mcghee
Susmita panda
Production coordinator
Technical edite
Adline swetha jesuthas
Pooja pande
Cover work
Indexer
Adline swetha jesuthas
Hemangini Bari
About the author
Bert wheeler was born and raised in louisville, Kentucky and is one of five sons. After
graduating from high school he entered the United states Navy and later retired in 1997
after 20 years as an Air Traffic Controller. Following his military career, Bert returned to
college and graduated Magna Cum Laude with a degree in computer science.
After completion of his degree, bert worked in all aspects of the it and software
industries in numerous positions including Software Design and Development, Project
and Product Management, Director of Information Technologies, and Director of
Engineering Services. He continues to work and his primary area of expertise is in the
design and implementation of physical security solutions in the Access Control arena
throughout
the world
Acknowledgment
This book would not have been completed without the help of numerous individuals
I would like to thank the staff at Packt Publishing for their meticulous efforts and
editorial assistance throughout the completion of this book. special thanks to steven
Wilding, Susmita Panda, and Joel Goveya, whose tireless efforts have guided me and
kept me on track.
As with all writers, it is our families that provide the support and necessary
encouragement. To Claudia, my wife, partner and best friend, and my sons Jeremy, Justin,
Valentino, and arrigo. Without your love and support throughout my lifetime, I would not
have become who I am today thank you for everything you have done the lessons you
have taught me and the love that keeps me going. I am blessed
About the reviewers
Clif Flynt has been a professional programmer since 1978. He has used languages
TCl/Tk Clif has developed applications for many clients including the US Navh nd
ranging from Am2900 microcode to high level languages such as APL, HTML, a
General Mills, and McDonalds, and also for his own amusement
Clif has taught computer science at grinnell college and eastern michigan University
He's a member of the Washtenaw Community College Computer Science Advisory
Committee. He's delivered training sessions in the US, Canada, Europe, and India, and
has given talks at conferences in the Us and europe.
Clif is the president and founder of the Tcl Community Association, the organization that
runs the annual Tcl/Tk conference in the US and coordinates the Tcl/Tk and Open ACS
involvement with Google Summer of Code. Since 1999, Clif has owned his own company
Noumena Corporation. Noumena Corporation provides computer training and software
development services, focusing on Tcl/ Tk and other open source technologies
Clif has written Tcl/Tk for Real Programmers, Tcl/Tk: A Developer's Guide, has edited
Interactive Web Applications with Icl/k(Academic Press, Schroeder/Doyle), Practical
Programming in Tc//Tk(Prentice Hall, Welch/Jones/Hobbs), Tcl and the tk Toolkit(Addison
Wesley, Ousterhout/Jones), and Tc//Tk Programmers Reference(Osborne, Nelson)
Thomas J Krehbiel is a graduate electrical engineer with a masters' in solid state
semiconductor and device physics. During his career in the semiconductor industry, he
did IC circuit design, IC device design, managed a parametric test area, managed a CIM
group, and worked in a ret(reticle enhancement technologies) software development
group. Along the way, he created a parametric data analysis system, a wafer tracking
system, and a ret processing system
Thomas has many years of experience managing software development and the
hardware and system associated with that development. he has programmed for over
30 years, starting with Fortran and ending with his current favorite language tcl/Tk. as
computers changed, Tom worked with mainframes(IBM360), minis (DEC), and desktops
(HPUX, Solaris, Linux, Windows
hen he was younger, he enjoyed playing baseball, basketball, handball, tennis, hiking
the grand canyon, and snow skiing
wwW, PacktPub com
Support files, eBooks, discount offers
and more
Youmightwanttovisitwww.Packtpub.comforsupportfilesanddownloadsrelatedto
your book.
Did you know that packt offers e book versions of every book published, with PDF and
epubfilesavailable?YoucanupgradetotheebooKversionatwww.Packtpub.comand
as a print book customer, you are entitled to a discount on the e Book copy. Get in touch
with us at servicepacktpub com for more details.
Atwww.Packtpub.comyoucanalsoreadacollectionoffreetechnicalarticlessignup
for a range of free newsletters and receive exclusive discounts and offers on Packt books
and e books
PACKTLIB°
http://packtlib.Packtpub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book
library. Here, you can access, read and search across Packt's entire library of books
Why Subscribe?
Fully searchable across every book published by Packt
Copy paste, print and bookmark content
On demand and accessible via web browser
Free Access for pac kt account holders
Ifyouhaveanaccountwithpacktatwww.paCktpub.comyoucanusethistoaccess
PacktLib today and view nine entirely free books Simply use your login credentials for
immediate access
Table of contents
Preface
Chapter 1: The Tcl shell
5
Introductlon
5
The tcl shell
6
Writing to the Tcl console
Mathematical expressions
Tcl expr operands
Mathematical functions
11
Computing mathematical expressions
12
Referencing files in Tcl
13
Variables
15
Command line arguments
17
Chapter 2: Using the Building blocks Control Constructs
21
Introduction
21
Controlling flow with the if statement
23
Looping with for
24
Looping with foreach
25
Looping with while
26
Continuing a procedure
27
Breaking out of a procedure
28
Nested looping
29
Chapter 3: Error Handling
31
Introduction
31
Using the catch command
32
Using the eval command
34
Using the error command
35
Error handling procedure
36
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.