wxRuby or Qt4Ruby for learning GUI

Hi,

I’ve gone past the basics of learning the ruby language and now want to
learn how to create simple GUI applications. Can you tell me which GUI
library is the best to use?

On Fri, Sep 16, 2011 at 9:44 AM, Lloyd Blake
[email protected]wrote:

Hi,

I’ve gone past the basics of learning the ruby language and now want to
learn how to create simple GUI applications. Can you tell me which GUI
library is the best to use?

both of those are good, but you should also check out shoes:
http://shoesrb.com/ it’s a sporty GUI DSL written by _why (and now
maintained by a steve kablank (and i probably mis-spelled his last
name))
the main version can be found on that site, but for a
ruby-implementation
using gtk2 as the backend try green shoes:
http://ashbb.github.com/green_shoes/
hex

disclaimer: i’m a demi-committer to green shoes, so i have a bit of a
bias
:stuck_out_tongue:

Shoes is probably the easiest to get started with. I use Wxruby to
develop some thick clients, and at first it was a little confusing, but
after looking through the examples they provide it gets a lot easier.
It’s a much more powerful GUI and gives you options that shoes cant.
Those capabilities, however give it a bigger learning curve.

OK thanks for the advice I’ll take a look at these libraries on ruby, I
have some experience of wx and qt from using python. I must admit I
did prefer wx over qt on python. This ‘shoes’ looks interesting as
well.

LB

On Friday 16 September 2011 22:44:09 Lloyd Blake wrote:

Hi,

I’ve gone past the basics of learning the ruby language and now want to
learn how to create simple GUI applications. Can you tell me which GUI
library is the best to use?

I don’t think there’s a best library. It depends on your needs and
your
personal taste. I like QtRuby very much, while the only time I tried to
use
wxRuby I found it very unpleasant to work with, even if I don’t recall
exactly
why. You have to consider my opinion taking into account that I already
knew
Qt since the time I programmed in C++, so I was already accustomed to
the way
it works.

Also, QtRuby itself has very little documentation [1] as it relies
almost
exclusively on the C++ documentation for Qt [2], wich may be an issue if
you
don’t have at least a bit of knowledge of C++. WxRuby, on the other
hand, has
its own documentation, which is also based on the C++ one but has mostly
been
converted to ruby.

Regarding the toolkit themselves, I found Qt much more powerful,
flexible and
elegant than Wx. If you’re just learning, however, this may not matter
much.

[1] http://techbase.kde.org/Development/Languages/Ruby
[2] http://doc.qt.nokia.com/4.7/index.html

Stefano

I never tried qt because of their
weird licensing.

QT is lgpl licensed nowadays. No biggie.

If you preferred wxPython, then check out wxRuby. Personally, I prefer
the wx gui’s in python and ruby. I never tried qt because of their
weird licensing.