[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby GUI redux

Craig Buchanan

8/7/2007 10:02:00 PM

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
2 Answers

M. Edward (Ed) Borasky

8/8/2007 3:37:00 AM

0

EVMan wrote:
> 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
>

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


vasudevram

8/8/2007 4:34:00 PM

0

> EVMan wrote:
> > 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


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/int...

and one from New Mexico Tech:

http://www.nmt.edu/tcc/help/pub...

Vasudev Ram
Dancing Bison Enterprises
Biz site: http://www.dancin...
PDF creation/construction toolkit:
http://sourceforge.net/proje...
Blog: http://jugad.livej...