Favorite GUI toolkit

jdavidb on 2008-01-17T14:12:35

What's your favorite GUI toolkit? Don't limit yourself to Perl. What's the best GUI toolkit you've ever used (or just looked at) in any (or every) language, and why?

And while we're at it, which GUI toolkit do you hate the most?


All I know

Aristotle on 2008-01-17T17:07:30

… is that I hate Tk.

Cocoa

Dom2 on 2008-01-17T18:37:34

All I know is that Cocoa is the only thing that hasn't made me barf just reading the docs / sample code. Interface Builder is superb.

QT looked interesting, but C++? You've got to be kidding.

Many years ago, I confess to purchasing a Motif programming manual. I started reading and never wrote a single line of code such was my revulsion.

Plus, what Aristotle said about Tk.

On the whole though, writing GUI programs makes me realise why I like the command line so much…

Re:Cocoa

Aristotle on 2008-01-17T22:39:42

FWIW, I really don’t hate Gtk2. The docs can be a bit sparse at times, mind, but I haven’t found much to complain about in the framework as such, and the quality of the bindings is superb. They have had serious effort (both conceptual and labour-wise) put into them by a large group of people over a long time and the spit and polish really shows.

I have to say that wiring up event handlers and juggling widgets in a language that has closures and automatic memory management is so much nicer than doing GUIs in any ALGOL descendant.

As for Qt, well the toolkit itself is written in C++, but that doesn’t necessarily count for much; there are Perl bindings. And conceptually, I hear it’s pretty well thought-out. I don’t know if the bindings are any good though.

Re:Cocoa

jdavidb on 2008-01-18T13:37:00

I played with the Perl GTK bindings briefly circa early 2002. I recall that I really liked them, but at the time I think I was a Gnome fanboy. I had a graduate-level machine learning class in which we were using matlab as our standing programming and GUI tool, and I was actually planning on using Perl, PDL, and GTK instead for a while.

But I remember zilch, and I realize I have very little basis for comparison amongst other GUI toolkits. My opinion that GTK was great, or that I really like Swing (I'm starting to like Swing) doesn't count for much, and I know it, so I'm hunting around for perspective. :)

Re:Cocoa

Aristotle on 2008-01-18T13:57:33

Note that I’m talking about Gtk2, the bindings for gtk+ 2.0, not Gtk-Perl, the bindings for gtk+ 1.2. The latter were far more rudimentary and have long since been abandoned, as has the underlying toolkit.

Which ?

sigzero on 2008-01-17T19:07:34

I actually like Tk and the new themeing that is out for it now.

I like wxWidgets as well.

Death to (x, y)!

Ron Savage on 2008-01-17T23:46:29

I refuse to use things like Tk and wxWidgets.
Having to specify placement of items is not how I want to spend my time.

So I use HTML and get the browser to do most of the layout-type work for me.

And yes, I'm lucky in that I can get all my clients to accept browser interfaces to anything. Eat your heart out :-)).

Re:Death to (x, y)!

Aristotle on 2008-01-18T13:57:52

The proper way of writing UIs manually is by packing widgets into hboxes and vboxes, which is pretty much the same as table-based HTML layout. HTML done properly (ie. without tables for layout) is worse than that, actually, since CSS only provides a float model and absolute positioning. There have been some tentative steps towards hbox/vbox style positioning in drafts of newer versions of CSS, but the CSS WG is not exactly the most healthy or productive working group around.