|This page last updated 13 December 1997
Waihekepaul's Tcl/Tk Page of Horizontal Rules
|You may have come from
The Main Tcl page
This page provides examples of how you can enliven your page with
simple horizontal rulers made out of Tcl/Tk commands.
This music has been ommitted
Thank you J S Bach for Bwv1052 mov 2.
Midi file copyright of Paul Nash 1996.
Permission granted to copy for non-commercial use only.
The FRAME command
The frame command is the most simple widget command -
when you are taught about Tcl/Tk, the frame command is just mentioned
briefly because it is considered too simple to say much about.
BUT, it is very useful for our purposes. In fact it is quite
All the examples will show the Tcl/Tk code that produce the given
images. Tcl script can now be written directly into your .html file by
using the <EMBED TYPE='application/x-tcl' SCRIPT='.....' > HTML statement. If you have a Tcl script
that you wish to reuse on the same page or different pages you can put it in a
seperate file and use the SRC= option instead of the SCRIPT= option. As some Web Hosts do
not yet allow .tcl files on their systems (yeah, like Geocities who forgot to crawl into the Ark) you can
give your tcl files a .txt type and retain the TYPE='application/x-tcl" option. But if the files are held as .tcl
you dont need the TYPE= option.
First here are two examples from the main Tcl/Tk page.