Suggestion for which Linux + Windows GUI API to code to?

I’m about to start helping a friend of mine learn Ruby by building a small GUI
database application he needs.

We’re both interested in having it run on Windows & Linux. Also, since he
only runs Windows and I only run Linux, that would mean I could help him with
the project.

So, I’d be interested to hear whether anyone has had good/bad experiences with
any of the cross-platform GUIs that have Ruby interfaces.

I’m mainly interested in: (1) how “Ruby Way”-ish APIs feel, (2) whether you
hit any gotchas that meant you ended up having to conditionalise the code for
the two platforms, and (3) how much effort seemed to be involved.

I’ve done a fair bit of Ruby/Tk programming on Linux, but have never tried to
run the corresponding programs on Windows (something for me to try!). I’m
also thinking about FOX and Fltk. Are there any other GUIs that run well on
both Windows and Linux?

I’ve noticed the discussion of GUItopia on the list recently. Is there a
working version yet, or is that still a future?

Thanks in advance. I think picking the right GUI API is going to make a big
difference to my mate’s first impression of Ruby.

“Harry Ohlsen” harryo@zip.com.au wrote in message
news:200208100752.05143.harryo@zip.com.au

I’m about to start helping a friend of mine learn Ruby by building a small
GUI
database application he needs.

We’re both interested in having it run on Windows & Linux. Also, since he
only runs Windows and I only run Linux, that would mean I could help him
with
the project.

So, I’d be interested to hear whether anyone has had good/bad experiences
with
any of the cross-platform GUIs that have Ruby interfaces.

I have (superficially) been looking at a lot of GUI libraries to find one
that would be a good general tool. It appears to me that something GTK’ish
is best on Linux and something dot net’ish is best on Windows for the time
being, unless you can afford Qt.

If you want something for both platforms with decent runtime and footprint,
it appears that the Fox toolkit is one of the best choices around. And it’s
in the Ruby distribution as FxRuby. Haven’t tried it on Windows, and
sometimes it seems at bit unstable on Windows, but I think the latter is
mostly related to software note correctly installed.
There is also the much larger VxWindows, but it has no Ruby hook.

Anyway, if you and your friend do choose to use FxRuby, I’d very much like
to hear how it works out - and also if you choose something else for that
matter.

I’m mainly interested in: (1) how “Ruby Way”-ish APIs feel, (2) whether
you

FxRuby is probably not really Ruby’ish all the way through, although Lyle
Johnson has added some Ruby Tao to it. Still it appears to be the best
choice.

Mikkel

I’ve noticed the discussion of GUItopia on the list recently. Is there a
working version yet, or is that still a future?

unfortunately no. it’s still too early. although its coming along pretty
quickly.

i think your only real choice is FOX a this point. (maybe FLTk? the only
one i haven’t tried)

but then i wonder, can ruby-wise be complied on windows?

···


~transami

“MikkelFJ” mikkelfj-anti-spam@bigfoot.com wrote in message
news:3d543e72$0$43959$edfadb0f@dspool01.news.tele.dk

in the Ruby distribution as FxRuby. Haven’t tried it on Windows, and

Sorry, should read - haven’t tried it on Linux. On Windows it has a rather
native Look and Feel, which is important to Windows users.

Mikkel

MikkelFJ wrote:

If you want something for both platforms with decent runtime and footprint,
it appears that the Fox toolkit is one of the best choices around. And it’s
in the Ruby distribution as FxRuby. Haven’t tried it on Windows, and
sometimes it seems a bit unstable on Windows, but I think the latter is
mostly related to software not correctly installed.

Just so I can be sure to follow up on potential bugs, what kinds of
instability have you experienced with FXRuby on Windows (or Linux, for
that matter)? I don’t want to distract from the main topic of this
thread so please respond privately (or in a separate thread) if you
think it’s appropriate.

There is also the much larger wxWindows, but it has no Ruby hook.

I think some folks are starting to work on this (although probably still
in the planning stages). See:

 http://wxruby.sourceforge.net

Anyway, if you and your friend do choose to use FxRuby, I’d very much like
to hear how it works out - and also if you choose something else for that
matter.

Yes, me too.