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 131731
To view parent comment, click here.
To read all comments associated with this story, please click here.
Agreed
by JoeBuck on Thu 8th Jun 2006 23:47 UTC 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[2]: Agreed
by DoctorPepper on Fri 9th Jun 2006 14:01 in reply to "RE: Agreed"
DoctorPepper Member since:
2005-07-12

Except Gnome or KDE means you stay there. My Tcl/Tk application can go way more places.

How about this compromise: Use the Tk widget set, with the much better environments presented by Perl, Python or Ruby? I have used Perl/Tk and Python with Tkinter, and had the benefit of using those powerful languages, and yet still managing to have the cross-platform GUI available. True, Tk doesn't really provide a very "modern" GUI widget set, but it is useful and cross-platform.

On another though, if you use Python, you can use wxPython and have a cross-platform application. I do that all the time, writing one app that runs on both Windows and Linux.

Reply Parent Score: 1

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[2]: Agreed
by jfontain on Fri 9th Jun 2006 11:01 in reply to "RE: Agreed"
jfontain Member since:
2006-06-09

look at http://moodss.sourceforge.net/ (a graphical monitoring application): it is indeed a large application.

Reply Parent Score: 1