Gui with ruby

could someone please reccomend a good program to create a gui for my
ruby programs

thanks…

Mark K. wrote:

could someone please reccomend a good program to create a gui for my
ruby programs

thanks…

I’ve written programs in both Tk and FXRuby, and dabbled with wxruby. I
like FXRuby the best, mainly because it’s given me the least trouble as
far as getting it loaded, finding documentation, and being able to write
code quickly. It’s not perfect, but it works for me.

I did like Tk when I was using Ruby 1.8, but it was a royal pain to
transition Tk to Ruby 1.9. The biggest drawback with Tk is you have to
install a separate Tk package, and even after getting it running with
Ruby 1.9 my programs load very slowly (oddly enough, the same programs
loaded much faster with Ruby 1.8). I’ve gotten frustrated enough that
I’ve abandoned Tk and gone totally to FXRuby.

There is a nice FXRuby book by Lyle J. that I recommend.

–Alex

On Tue, May 18, 2010 at 1:18 PM, Alex DeCaria
[email protected] wrote:

I did like Tk when I was using Ruby 1.8, but it was a royal pain to
transition Tk to Ruby 1.9. The biggest drawback with Tk is you have to
install a separate Tk package, and even after getting it running with
Ruby 1.9 my programs load very slowly (oddly enough, the same programs
loaded much faster with Ruby 1.8).
I am surprised to read, this Tk is built into Rub1.9 and works
perfectly for me, on which platform are you?
Cheers
R.

Mark K. wrote:

could someone please reccomend a good program to create a gui for my
ruby programs

thanks…

If you need relatively simple gui I would recommend Shoes (
http://shoes.heroku.com/ )

On Tue, May 18, 2010 at 3:35 PM, Alex DeCaria
[email protected] wrote:

Robert D. wrote:

That’s what I feared, thx for sharing.

Robert D. wrote:

I am surprised to read, this Tk is built into Rub1.9 and works
perfectly for me, on which platform are you?
Cheers
R.

I’m on the Windows side (XP and Windows 7). When I installed Ruby 1.9
the Tk Libraries were no longer bundled with the Windows installer
(there is a whole long, prior thread on this issue elsewhere in this
forum, at Where is Ruby 1.9 'TK' library? - Ruby - Ruby-Forum). I was able to
install the ‘tk_as_gem’ gem and get my Tk programs working again (this
was more difficult on my 64-bit Windows 7 OS), but when I run them they
load painfully slow, tile-by-tile. They work fine once loaded, but they
always load slowly. So I decided to leanr FXRuby and rewrite them all
in FXRuby instead (not that FXRuby is perfect mind you).

–Alex