Linux Step By Steps

Tk/Tcl Programming Language

From: Andy Bradford <>

If you saw my previous post you will know already that there has existed such a language for some time now---nothing new. I think the biggest problem with linux is that people have a large misconception
about what it can and can't do. Since they don't know anything about it, they automatically assume that it can't do what they want. I mentioned that Tcl/Tk is a multiplatform scripting tool... Well, Tcl is
the scripting part of it, however, Tk is actually the graphical part which adds more scripting command to do graphical widgets. It is very easy to write a graphical program with Tcl/Tk that will work on almost every platform. Just to pique your interest in Tcl/Tk, here is a snippet of code (very simple)... Put it in a file, make it executeable and then run it:

---------------------- cut here ---------------------------------
# don't mess with this line or the next \
exec wish "$0" ${1+"$@"}

button .hello -text "Click me" -command {puts "You clicked me"}
button .quit -text Quit -command exit
pack .hello .quit -padx 10 -pady 10 -side left
---------------------- cut here ---------------------------------

for more information see