# Ruby GUI redux

**URL:** <https://www.ruby-forum.com/t/ruby-gui-redux/111512>\
**Category:** Ruby\
**Created:** [August 8, 2007, 5:05am UTC](https://www.ruby-forum.com/t/ruby-gui-redux/111512 "2007-08-08T05:05:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 8, 2007, 5:05am UTC](https://www.ruby-forum.com/t/ruby-gui-redux/111512/1 "2007-08-08T05:05:39Z")

</div>

Thanks to all who gave the GUI advice earlier. I think I will start  
with  
Ruby-Tk, since I am new at Ruby and Tk is a much lighter weight GUI  
builder than some of the others. And, I know Perl-Tk very well.

So far there is no Ruby-Tk book and I have been googling for examples.  
I  
have collected enough to tell that Ruby-Tk works and looks just fine.

But…  
I have found lists and examples of the common widgets - buttons,  
listboxes, etc - but they are fairly trivial examples. Each (Perl) TK  
widget has many options and parameters and some have a ton of them. I  
don’t know enough Ruby yet to make it obvious how to convert a parameter  
from Perl-Tk to Ruby-Tk.

Searching the main Ruby docs I have found the TK classes and libraries,  
but as far as I can tell, the only info they give is the library  
routine(s) that is called. I could trace the calls back and then take  
the  
called source apart, but I am not into self inflicted pain.

Where are Ruby-Tk’ers getting the detailed info on each widget?

Thanks again.

Evman

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 8, 2007, 5:37am UTC](https://www.ruby-forum.com/t/ruby-gui-redux/111512/2 "2007-08-08T05:37:41Z")

</div>

EVMan wrote:

> widget has many options and parameters and some have a ton of them. I  
> Thanks again.
> 
> Evman

A lot of them buy the Perl/Tk book and do a mental translation.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 8, 2007, 6:36pm UTC](https://www.ruby-forum.com/t/ruby-gui-redux/111512/3 "2007-08-08T18:36:10Z")

</div>

> > listboxes, etc - but they are fairly trivial examples. Each (Perl) TK
> 
> > Thanks again.
> 
> > Evman

You could try using some of the Python Tkinter tutorials on the Net  
and translate to Ruby. There’s one from Fredrik Lundh:

[http://www.pythonware.com/library/tkinter/introduction/](http://www.pythonware.com/library/tkinter/introduction/)

and one from New Mexico Tech:

[http://www.nmt.edu/tcc/help/pubs/tkinter/](http://www.nmt.edu/tcc/help/pubs/tkinter/)

Vasudev Ram  
Dancing Bison Enterprises  
Biz site: [http://www.dancingbison.com](http://www.dancingbison.com)  
PDF creation/construction toolkit:  
[Conversion of other file formats to PDF download | SourceForge.net](http://sourceforge.net/projects/xtopdf)  
Blog: [http://jugad.livejournal.com](http://jugad.livejournal.com)
