Exercises, examples and other material relating to training module T050. This module is presented on Private Courses
and Specially Run Courses
Tcl is a language designed to provide an
environment in which engineers can tailor
generic applications written in C - and as
such you'll find it used in industries like
IC design and Numerical Control. If you add
Tk, you get a powerful Graphic User Interface
that's great for writing window base applications,
and Expect provides a powerful front control
for command line processes that would otherwise
be difficult to automate.
Related technical and longer articlesIncr-Tcl - Object Oriented extension to TclWhy have Tcl/Tk been around for so long?The Typist and the Engineer
|Articles and tips on this subject||updated|
|4616||Still teaching Tcl in 2016?|
Yes, we still offer Tcl courses â€¦ as I have just answered an enquirer. Even though it's the second-oldest language that we teach, it has stood the test of time well and there's a large code base in use that needs supporting and updating from time to time.
The public courses are
Learning to Program ...
|2504||Learning to program in ...|
At Well House Consultants, we offer courses at two levels in a number of program- ming languages. Our "learning to program in ..." courses are for delegates who have never programmed before, or who are rusty, who lack confidence, or want a refresher of the basic principles. Our "... programming" courses ...
|4460||Using Object Oriented Tcl and the Tk toolkit together - real life example|
There are all sorts of ways to look at the survey data we gathered last October on the TransWilts trains, and one fact I'm particularly interested in is the journey lengths of passengers. I have all the information to hand that I need to work this out - but in different files:
Survey data [here]
|4434||Public training courses - upcoming dates|
I've been presenting a long series of private courses over the past two months - Ruby and Cucumber, Python, Java and C++. From the beggining of March until mid April, I'm training most weeks at our Melksham, Wiltshire training centre - courses scheduled as follows:
If you've missed these dates or want ...
|4206||Writing the perfect program in Tcl?|
I'm going to disappoint you... there's no such thing as the perfect program. But when I'm writing an answer to a class exercise and showing a sample, I have to make sure it's to a high standard - and that means at least:
• Well commented
• Using good variable names
• Avoiding repetition ...
|3286||Should we cover expect and/or Tk on our public Tcl courses?|
A sizeable minority of our Tcl course delegates use the expect and / or tk extensions. And on our Tcl courses we handle the two differently. For Expect, we include some coverage in our standard agenda, running if required an hour or two into the evening of starting early in the morning to ensure substantial ...
|3192||Tcl - Some example of HOW TO in handling data files and formats|
During the Tcl course I was running earlier this week, we got involved in a number of interesting topics such as
• How to clean up input lines into lists of fields (use split)
• How to reformat awkward fields (use regexp and regsub)
• How to combine files that vary in format from year ...
|2681||Tcl - a great engineering language|
It might be a little old and out of fashion - but Tcl is still very much in use, we use it and we can offer you a learning to program in Tcl training course if you're new to programming, or a Tcl Programming course if you've programmed in another language before. We also offer a two day Tk course as ...
|2474||Using Tcl and Expect to automate repetitive jobs|
If you're typing the same series of instructions into your computer time and time again, perhaps with predictable variations depending on the responses that you get, you should consider using Expect. Expect adds three extra major commands to the Tcl language:
• spawn to start a process
• send ...
|2429||Tcl scripts / processes on a web server via CGI|
If you have programs / scripts / processes written in Tcl, you can run them on your web server via the Common gateway Interface, possibly with a bit of topping and tailing to read data from a form rather than via gets commands, and to ensure that the output does get the right headers attached to it and ...
Examples from our training material
|day2|| A good - but not perfect - early program|
|day3|| A good - but not perfect - second program|
|distance_graph|| itcl and tk together - full app|
|myfuncs|| File of function(s) for common operations|
Some modules are available for download
as a sample of our material or under an Open Training Notes License
for free download from [here]
Topics covered in this module
What is Tcl?
What are Tk and Expect?
What are they used for?
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule
Well House Consultants specialise in training courses in
. We run
throughout the UK (and beyond for longer courses), and
at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if you live in a different
country or continent to us
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre.