Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Tcl/Tk 8.5 Programming Cookbook
Tcl/Tk 8.5 Programming Cookbook

Tcl/Tk 8.5 Programming Cookbook: 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.

eBook
€8.99 €25.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Tcl/Tk 8.5 Programming Cookbook

Left arrow icon Right arrow icon

Key benefits

  • The quickest way to solve your problems with Tcl/Tk 8.5
  • Understand the basics and fundamentals of the Tcl/Tk 8.5 programming language
  • Learn graphical User Interface development with the Tcl/Tk 8.5 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.5 language

Description

With Tcl/Tk, you can create full-featured cross-platform applications in a simple and easy-to-understand way without any expensive development package; the only tools required are a simple text editor and your imagination. This practical cookbook will help you to efficiently interact with editors, debuggers, and shell type interactive programs using Tcl/Tk 8. This cookbook will comprehensively guide you through practical implementation of Tcl/Tk 8.5 commands and tools. This book will take you through all the steps needed to become a productive programmer in Tcl/Tk 8. Right from guiding you through the basics to creating a stand-alone application, it provides complete explanation of all the steps along with handy tips and tricks. The book begins with an introduction to the Tcl shell, syntax, variables, and programming best practices in the language. It then explores procedures and the flow of events with control constructs followed by advanced error trapping and recovery. From Chapter 4, a detailed study of string expressions and handling enables you to handle various string functions and use lists to expand the string functionality. The book then discusses in-depth the Tcl Dictionary and how to utilize it to store and retrieve data. File operations and Tk GUI handling are covered extensively along with a developing a real-world address book application to practice the concepts learned.

Who is this book for?

If you are a beginner interested in adding Tcl/Tk 8.5 to your list of languages, or an experienced Tcl/Tk programmer looking to sharpen your knowledge, be assured, you will find your prefect guide in this book. Whether you are developing for your personal use or commercial applications, this book will provide you with a ready reference to the building blocks of Tcl/Tk 8.5

What you will learn

  • 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
Estimated delivery fee Deliver to France

Premium delivery 7 - 10 business days

€10.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Feb 11, 2011
Length: 236 pages
Edition : 1st
Language : English
ISBN-13 : 9781849512985
Category :
Languages :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to France

Premium delivery 7 - 10 business days

€10.95
(Includes tracking information)

Product Details

Publication date : Feb 11, 2011
Length: 236 pages
Edition : 1st
Language : English
ISBN-13 : 9781849512985
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 116.97
Tcl/Tk 8.5 Programming Cookbook
€32.99
Tcl 8.5 Network Programming
€41.99
Network Analysis using Wireshark Cookbook
€41.99
Total 116.97 Stars icon
Banner background image

Table of Contents

13 Chapters
The Tcl Shell Chevron down icon Chevron up icon
Using the Building Blocks Control Constructs Chevron down icon Chevron up icon
Error Handling Chevron down icon Chevron up icon
Handling String Expressions Chevron down icon Chevron up icon
Expanding String Functionality Using Lists Chevron down icon Chevron up icon
The Tcl Dictionary Chevron down icon Chevron up icon
File Operations Chevron down icon Chevron up icon
Tk GUI Programming with Tcl/Tk Chevron down icon Chevron up icon
Configuring and Controlling Tk Widgets Chevron down icon Chevron up icon
Geometry Management Chevron down icon Chevron up icon
Using Tcl Built-in Dialog Windows Chevron down icon Chevron up icon
Creating and Managing Menus Chevron down icon Chevron up icon
Creating the Address Book Application Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
(7 Ratings)
5 star 14.3%
4 star 28.6%
3 star 14.3%
2 star 28.6%
1 star 14.3%
Filter icon Filter
Top Reviews

Filter reviews by




Amazon Customer Apr 10, 2017
Full star icon Full star icon Full star icon Full star icon Full star icon 5
good
Amazon Verified review Amazon
Ned Mar 28, 2011
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(I received a review copy of this book)This book should be very helpful for beginners interested in what Tcl/Tk has to offer, or those who have to maintain "that Tcl app" at work.The table of contents provides a topical list of tasks, and each section can stand on its own - allowing the reader to immediately write code and see results.This couples well with Tcl's orientation towards rapid prototyping, and should provide the taste beginners need to desire more Tcl/Tk.
Amazon Verified review Amazon
WJG Mar 16, 2011
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
When I received my review copy of the Tcl/Tk 8.5 Programming Cookbook I was half expecting a rewrite of the manual -lists of features and functionality with little indication of how and when to use specific resources. I was wrong. Let me explain. A cookbook is something to turn to when you've run out of ideas or perhaps are looking to find some new way of tackling an old problem. Alternatively, cookbooks are for beginners and novices, those people who need to know how do something effectively and quickly. In this area the `Cookbook' score points in every chapter.Turn to any page in the text and you will find a clear, structure on how to use Tcl/Tk to resolve particular issues. There is a task statement, such as 'Creating a List' in which a particular requirement is identified followed by a 'How to Do It' code snippet and a 'Why it Works' explanation. For someone new to Tcl programming this is an excellent approach.Overall, the `Cookbook' is organised over thirteen chapters which cover all the key areas any novice Tcler needs to know. The flow of the book first introduces the reader to the key aspects of Tcl: the shell, program control, error handling, string manipulation, lists, dictionaries (particularly useful) and file operations. Following this it deals with the creation and configuration of GUIs using the Tk widget set and the use of in-built dialogs and the creation of menus. Finally, the issues and decisions surrounding the completion of a first Tcl/Tk project are examined in the form of an address book application.ConclusionThe Tcl/Tk 8.5 Programming CookBook is exactly what it set out to be - a practical tutorial text. It doesn't cover the advanced features of Tcl/Tk but this is intentional. Would I recommend this book to a Tcl/Tk newbie? Yes.
Amazon Verified review Amazon
Highlander Aug 28, 2013
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
Diese Buch ist wirklich nur für absolute Anfänger. Ein Kochbuch für 100 Lösungen ist es aber aus meiner Sicht nicht. Schritt für Schritt wird in die Kommandos eingeführt, allerdings ohne jeden Tiefgang. Ohne dem zusätzlichen Studium der Manpages innerhalb von Tcl kommt man nicht aus. Die Einführung endet dann in einer rudimentären Adressbuch Applikation. Sehr enttäuschen ist, dass der Buchtitel auf Tcl/Tk 8.5 eingeht, aber alle Kommandos bereits ab der alten wish 4.0 funktionieren. Nirgendwo ein Hinweis auf die Spezialitäten der Version 8.5.Der Schwerpunkt liegt in der GUI Programmierung. Leider fehlen die Definitionen für Schriften und Betriebssystemspezifische Designtemplates die gerade mit der Version 8 überarbeitet wurden. 20 Seiten mehr und das ganze wäre erklärt gewesen. Eine weitere Stärke von Tcl war von je her die Port Kommunikation, die ähnlich einem Dateizugriff funktioniert. Auch hier kein Wort vom Autor. Ein einfaches Bespiel zum Zugriff auf eine MySQL Datenbank wäre gerade für eine Adressbuchanwendung toll gewesen. Auch hier nichts.Der Einband weckt mehr Erwartungen, doch es ist eine einfache Einführung in die Syntax von Tcl/Tk. Deshalb noch 3 Sterne.
Amazon Verified review Amazon
Roalt May 12, 2011
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
I was a bit suprised when a representative of Packt asked me to reviewa new Tcl/Tk book: A new Tcl/Tk book? A book about a language thatgets much less attention nowadays than Ruby, Clojure, Python, C#, andeven Java? Yes, it's really true.There are quite some books on Tcl/Tk, albeit that most are alreadyaging. One of the well-known books is Practical Programming withTcl/Tk by Brent Welch that's now in it's 4th edition. So it'squite obvious that any other book shall compete with this book on theshelf about Tcl/Tk programming.But even with all those new languages, Tcl/Tk doesn't really get thecredit it deserves: It's not a web-oriented language (initial attempts torun Tcl/Tk in the browser failed to catch much popularity). But it'sstill strong as scripting language and as language to make userinterfaces, without having to learn a new framework or a newprogramming language. In that sense, Tcl/Tk is an Agile language thatyou can pick up and extend your knowledge as you go.The book is, as the name suggests, written in the Cookbook-style: Easyto distinguish topics with examples and simple answers. I like thestyle as it's both useful as tutorial book, to read from front to end,as for reference book where you can skip to the topic or issue and read it.The books starts with the Tcl shell syntax, then it describes thestandard control structures, error handling, and then continues to thevarious variable types of the language, such as strings, lists anddictionaries. After discussing the core Tcl features, the books moveson to the Tk-part of Tcl/Tk, the user interface. The differentstandard components are discussed, at the end of the book an exampleis given of an address book application.Although the book, in essence, can be a good addition to what'savailable, when I first browsed through it, I got a bit of saddenedfeeling: There were some typos and errors (e.g. TCL_interactiveinstead of tcl_interactive), and more important: the code indentationis broken throughout the whole book: I know you can have differentopinions on this subject, but I cannot believe the author applies itas it is done in the book. I sincerely hope these layout problems andsome errata's will trigger a second edition release.There are also some other issues that I noticed related to the order:For instance, first regular expressions are discussed. A view pageslater, the simple string search is discussed. If you're reading thebook as tutorial, you might this order a bit unnatural. I also miss adiscussion of the namespace functionality in Tcl/Tk: if you want towrite larger applications, it prevents serious scaling problems andthe use of global variables.The Tk-part of the book is not complete, some important (advanced)techniques are missing. For instance, to control the input of a entrywidget, or handle the scrollbar with the -xscrollcommand and-yscrollcommand (the scrollbar isn't even mentioned). In that sense,if you do not consider it an advanced Tcl/Tk book, it's allright, butyou might miss out these important topics otherwise. The address book application is a section of the book I find a bitmisplaced: it looks like it's just a listing of a (long) application,that is described afterwards. Although I like long examplesdiscussing more complex issues with the language or see the topicscombined in one example, I doubt this example will be encouragingenough for the reader. A reference to where the source code can befound would be more than sufficient, and it would leave room todiscuss the important decisions made in this application.Concluding, I must say that for an entry-level Tcl/Tk book it's a goodand easy accessible book. But if you intend to get a fullunderstanding of the language, you will require at least oneadditional book (or read a lot of internet or manual pages). And someissues, especially the indentation, must be taken care of in a reprintbefore I can give a positive recommendation.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela