Exercises, examples and other material relating to training module T246. This topic is presented on public course
Tcl/Tk
Tcl - the Tk Toolkit - The Graphic Application of Tcl through Tk
This course takes the programmer who's already
learnt to program in Tcl forward into the ... http://www.wellho.net/course/tkfull.html [course] |
There's a very common requirement to tabulate data within a GUI, but neither Java (in awt) or Tcl (in Tk) had the facility built in from "day 1". In ... http://www.wellho.net/mouth/1327_Tkt ... cl-Tk.html [short article] |
#!/usr/bin/wish
package require Tix;
set minsize 90000
set queue /home/trainee
tixTree .large -command doit -width 500 -height 300 -options {
... http://www.wellho.net/resources/ex.php4?item=t246/tixtree [code sample] |
#!/usr/bin/wish
package require Tix
set trainee {curry dupiaza madras nan samosa vindaloo}
proc action {} {
global clients
global trainee
... http://www.wellho.net/resources/ex.php4?item=t246/tixfs [code sample] |
#!/usr/bin/wish
package require Tix
proc finish {} {
global have
puts "You have $have students"
exit
}
proc setvacant ... http://www.wellho.net/resources/ex.php4?item=t246/tix005 [code sample] |
#!/usr/bin/wish
package require Tix
proc finish {} {
global have
puts "You have $have students"
exit
}
proc others {where ... http://www.wellho.net/resources/ex.php4?item=t246/tix007 [code sample] |
#!/usr/bin/wish
package require Tix
proc finish {} {
set num [.trainees cget -value]
puts "You selected the value $num"
exit
... http://www.wellho.net/resources/ex.php4?item=t246/tix003 [code sample] |
MegaWidgets are combination widgets (usually in their own frames). The Tix extension to Tcl provides a number of such widgets, such as file selection boxes and standard widgets with scroll bars. In this module, we teach you how to build Tix megawidgets into your GUI and how to set and handle the events they generate.
This topic is presented on public course
Tcl/Tk
Examples from our training material
| tix001 | Tix Control widget demonstration |
| tix003 | Tix Demonstration of standard widget options |
| tix004 | Practical demo - Tix MegaWidget |
| tix005 | Tix Control - feedback into widgets |
| tix007 | - mulitple feedbacks on Tix MegaWidgets |
| tixbunch | Showing a selection ot Tix Megawidgets |
| tixfs | Tix File selection application |
| tixtree | Tix - Tree of big files below a specified directory |
Background information
This module is available under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
Introduction.
What is Tix?.
Hello Tix world.
What can you do with a Megawidget?.
Standard widget functionality.
Some of the megawidgets provided by Tix.
Our sample application.
Container Widgets.
Adding content to a pane.
Creating a scrolled megawidget.
Creating a hierarchical widget.
Event and action handling.
Aspects of going live.
Some other megawidgets.
File selection boxes and dialogue boxes.
Tree Widgets.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Tcl/Tk, Expect,
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses 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. Also
available is the Opentalk
Forum for discussion of technical questions.