# Gui with ruby

**URL:** <https://www.ruby-forum.com/t/gui-with-ruby/188775>\
**Category:** Ruby\
**Created:** [May 18, 2010, 11:41am UTC](https://www.ruby-forum.com/t/gui-with-ruby/188775 "2010-05-18T11:41:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![site-master](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@site-master](https://www.ruby-forum.com/u/site-master)\
**Post date:** [May 18, 2010, 11:41am UTC](https://www.ruby-forum.com/t/gui-with-ruby/188775/1 "2010-05-18T11:41:26Z")

</div>

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

thanks…

---

<div class="post-metadata">

**Author:** ![site-master](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@site-master](https://www.ruby-forum.com/u/site-master)\
**Post date:** [May 18, 2010, 1:18pm UTC](https://www.ruby-forum.com/t/gui-with-ruby/188775/2 "2010-05-18T13:18:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![site-master](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@site-master](https://www.ruby-forum.com/u/site-master)\
**Post date:** [May 18, 2010, 1:51pm UTC](https://www.ruby-forum.com/t/gui-with-ruby/188775/3 "2010-05-18T13:51:35Z")

</div>

On Tue, May 18, 2010 at 1:18 PM, Alex DeCaria  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

---

<div class="post-metadata">

**Author:** ![site-master](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@site-master](https://www.ruby-forum.com/u/site-master)\
**Post date:** [May 18, 2010, 1:51pm UTC](https://www.ruby-forum.com/t/gui-with-ruby/188775/4 "2010-05-18T13:51:48Z")

</div>

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/](http://shoes.heroku.com/) )

---

<div class="post-metadata">

**Author:** ![site-master](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@site-master](https://www.ruby-forum.com/u/site-master)\
**Post date:** [May 18, 2010, 4:12pm UTC](https://www.ruby-forum.com/t/gui-with-ruby/188775/5 "2010-05-18T16:12:07Z")

</div>

On Tue, May 18, 2010 at 3:35 PM, Alex DeCaria  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Robert D. wrote:

That’s what I feared, thx for sharing.

---

<div class="post-metadata">

**Author:** ![site-master](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@site-master](https://www.ruby-forum.com/u/site-master)\
**Post date:** [May 18, 2010, 3:35pm UTC](https://www.ruby-forum.com/t/gui-with-ruby/188775/6 "2010-05-18T15:35:17Z")

</div>

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](http://www.ruby-forum.com/topic/204364#new)). 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
