Why people still like TCL/TKSeptember 26, 2006
This is the complete source code for a little X program I call
set myname "tkmsg"
wm title . $myname
wm iconname . $myname
frame .frame
button .text -text $argv -command {exit}
pack .text
(And this also automatically handles standard X things like the
For all its warts, TCL/TK is pretty much the closest the Unix world has come to a Bourne shell for X programming: something you can use to easily whip up quick little utilities and scripts. And it's pretty good at that job, as you can see. (And like sh scripts, it can be written by people who are just
bashing rocks together; you don't have to choke down a big pile
of library documentation just to do something simple. The most
time consuming bit of writing this script was finding out how
to print out stuff to standard output, so I could see if TK did
anything peculiar to |
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |