A new Tcl/tk example - a window to show system status
Archive - Originally posted on "The Horse's Mouth" - 2015-03-11 17:21:36 - Graham Ellis
The code is divided into a number of sections
1. Definition of pieces of code to be run in the event of a button being pushed, or some other action
2. Creation of the widgets (components) to be shown
3. Packing those components into a geometry
4. Processing the event code initially (to pretend that initial buttons had been pressed)
5. Finally, the code enters a main loop to wait for events and process them as it receives them.
Source code [here].