Training, Open Source Programming Languages

This is page http://www.wellho.net/resources/T219.html

Our email: info@wellho.net • Phone: 01144 1225 708225

 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
Tcl/Tk module T219
Drawing on Canvases
Exercises, examples and other material relating to training module T219. This topic is presented on public courses Learning to program in Tcl, Tcl/Tk, Tcl Programming

Tcl/Tk GUIs consist largely of components such as buttons, labels entry boxes and sliders. Sometimes you'll need something that's much more graphic and for this you'll use a canvas widget. You can write to a canvas down to individual pixel level, and you can also draw lines, ovals, rectangles, text and polygons. This module studies the options for drawing to and manipulating a canvas, and introduces computer graphic techniques such as world to pixel co-ordinate transformations and display list manipulation.


Articles and tips on this subjectupdated
4460Using 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] Station ...
2015-03-15
 
2211Tcl/Tk - why does the canvas widget use a display list?
"Tcl/Tk uses a display list when you draw on a canvas widget." OK - so what does that really mean? With most of the languages that we teach, any graphics you draw go straight into a frame buffer of a memory map that represents a frame buffer, so the earlier elements added to your graphic will be destructively ...
2009-06-01
 
Examples from our training material
can1   Drawing on a canvas
can2   Drawing shapes on a canvas and dragging them with the mouse
can3   Demo of different graphic objects
can4   Line styles on a Tk canvas
histo   Histogram drawn on a canvas - generalised code
imgoncanvas.tk   Placing a GIF on a canvas
tktext   text options in Tk - colour, font, size, centring
Pictures
Using a Tcl/Tk canvas
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
Canvas basics.
Canvas and Canvas objects.
Interacting with drawing objects.
Canvas objects.
The rectangle (rect) object.
The oval object.
The polygon object.
The arc object.
The line object.
The text object.
Computer graphics - techniques.
Coordinate systems.
Clipping.
Display lists.
Hidden line and surface.
Further issues.
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.


© WELL HOUSE CONSULTANTS LTD., 2024: 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/resources/T219.html • PAGE BUILT: Sun Oct 11 14:50:09 2020 • BUILD SYSTEM: JelliaJamb