Exercises, examples and other material relating to training module T223. This topic is presented on public course
Tcl/Tk
The Entry, text and listbox widgets provide a user data entry and edit capability which is highly configurable by the programmer - you can write a complete editor using a text widget if you like. ĘThis module covers the three text-ish widgets in detail.
Examples from our training material
form | Form using Tk entry widget |
form2 | Second form using Tk entry widget. |
lbex | Sample answer - listbox to choose types of fruit. |
listbox1 | Tk listbox example |
listbox2 | Tk second listbox example (code snippet only). |
teditor | Simple text editor in Tk |
tkt | A Tktable is a tabulator widget in Tcl/Tk |
tktext | a Tk text widget used as a vehicle for custom text editing |
tktx2 | Marks and tags and editing in a Tk text widget |
tktxt | Tk - Text Widget - first easy example |
Pictures
On site training in Tk
Background information
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
The listbox widget.
Scrolling a listbox.
The entry widget.
The text widget.
Text indices.
Text marks and tags.
Index arithmetic.
Editing facilities.
Other operations on text 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,
Ruby,
Lua,
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.