Linked by Eugenia Loli on Thu 8th Jun 2006 16:32 UTC
General Development Most computer users interact with their workstations primarily through some form of graphical user interface (GUI). In the world of Microsoft Windows, this interface is tightly controlled. The UNIX world, by contrast, offers a veritable smorgasbord of different GUIs with varying degrees of functionality. They range from minimalist window managers, such as twm, to large, capable tools, such as GNOME and KDE (K Desktop Environment). This article shows you how the Tcl/Tk scripting language offers a simple and elegant way to code GUI widgets with minimal effort.
Thread beginning with comment 131726
To read all comments associated with this story, please click here.
Wow, what a blast from the past
by BryanFeeney on Thu 8th Jun 2006 23:22 UTC
BryanFeeney
Member since:
2005-07-06

I remember when I started the whole Linux thing back in 98, all the distros came with loads of Tcl/TK programs. It had been huge during the nineties, but had begun to wane, not leasy because the programs looked a bit clunky.

In many ways Perl today is the new Tcl: there are very few people started new projects with it, but it's distributed with every copy of Linux as there are so many useful utilities written in it.

Frankly the claim that "this article shows you how the Tcl/Tk scripting language offers a simple and elegant way to code GUI widgets with minimal effort" is stretching the truth a bit: any mix of Python or Ruby and Qt or GTK is easier (for the modern developer) than Tcl/Tk. Hell, I'd even go so far to say that Qt/C++ is better.

Reply Score: 5

Agreed
by JoeBuck on Thu 8th Jun 2006 23:47 in reply to "Wow, what a blast from the past"
JoeBuck Member since:
2006-01-11

Tcl/Tk was revolutionary for its time (Tk in particular), but anyone starting a new project these days would be better off using a scripting language interface to a modern library: Python, Perl or Ruby with Gtk/Gnome or Qt/KDE. It's just as fast as doing Tcl/Tk, but Gnome or KDE gives you so much more than Tk does.

Reply Parent Score: 3

RE: Agreed
by sigzero on Fri 9th Jun 2006 00:45 in reply to "Agreed"
sigzero Member since:
2006-01-03

Except Gnome or KDE means you stay there. My Tcl/Tk application can go way more places. I use Perl for my web stuff. But I use Tcl/Tk for all my sysadmin stuff. If you haven't used it in any depth you aren't going to understand the richness of the language. It is really cool.

One thing I have to mention and that is the Tcl community is super friendly and helpful. I appreciate that a lot.

Tcl 8.5 is adding themeing to Tk (native l&f) and is going to add an object system to its core that is extendable. That should see the light of day this year.

As far as Windows goes, it has tcom and TWAPI that give you easy access to the internals of Windows.

The ability to easily pack the Tcl program into an EXE on Windows and a program on Unix is very nice as well.

This is by far the most fun I have had with a dynamic language.

Reply Parent Score: 4

RE: Agreed
by ma_d on Fri 9th Jun 2006 05:28 in reply to "Agreed"
ma_d Member since:
2005-06-29

Tk has its uses, I don't think you'd do a large application on tk but small gui's work fine.

I've used tkinter and it was REALLY easy to learn, compared to Gtk.

Reply Parent Score: 1

RE: Agreed
by postmodern on Fri 9th Jun 2006 00:49 in reply to "Wow, what a blast from the past"
postmodern Member since:
2006-01-27

Why not Lua? Easily embedded in apps and the syntax is very similar to pseudo-code.

Reply Parent Score: 1

RE[2]: Agreed
by da_Chicken on Fri 9th Jun 2006 01:04 in reply to "RE: Agreed"
da_Chicken Member since:
2006-01-01

Damn Small Linux guys use Lua/Fltk and their apps look very nice.
http://distrowatch.com/weekly.php?issue=20060508#interview

Reply Parent Score: 1