GTK w/ ruby

Hey,

I downloaded the ruby gtk library, but documentation is scarce. I did a
search on google to find more, but everything was in Japanese… does
anyone know where i can find some good up-to-date english documentation?

Thanks,
Cameron Matheson

Try this:
http://ruby-gnome.sourceforge.net/tutorial-en/

If it’s a recent version, the library should also have sample code,
look in the ruby-gnome cvs if you can’t find them.

···

On Sat, Jun 08, 2002 at 12:17:42PM +0900, Cameron Matheson wrote:

Hey,

I downloaded the ruby gtk library, but documentation is scarce. I did a
search on google to find more, but everything was in Japanese… does
anyone know where i can find some good up-to-date english documentation?

Thanks,
Cameron Matheson


Alan Chen
Digikata LLC
http://digikata.com

I have downloaded the demos file, but I cannot view it.When I typed “wish83
hello”, there was an error message said that there was error in startup
script :“invalid coomand name(require) while excuting”. And I tried other
demo file there are always errors. Can you tell me how to excute them and
view the demos? Thanks .

I have downloaded the demos file, but I cannot view it.When I typed “wish83
hello”, there was an error message said that there was error in startup
script :“invalid coomand name(require) while excuting”. And I tried other
demo file there are always errors. Can you tell me how to excute them and
view the demos? Thanks .

I don’t know about these specific demos, but it seems to me that you are
trying to run a ruby program with a tcl interpreter. Try “ruby hello”
instead of “wish83 hello” and it should work. Maybe “ruby hello.rb”.

Thanks, but according to the “readme”, these demos file should run under
wish shell. I have tried to run them using “ruby hello.rb” and there is no
error message but it doesn’t work. All of these demo files are *.rb files.

Maggie
···

----- Original Message -----
From: “Carlos” angus@quovadis.com.ar
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Saturday, June 08, 2002 1:34 PM
Subject: Re: How to view the ruby-tk81-demos-english

I have downloaded the demos file, but I cannot view it.When I typed
“wish83
hello”, there was an error message said that there was error in startup
script :“invalid coomand name(require) while excuting”. And I tried
other
demo file there are always errors. Can you tell me how to excute them
and
view the demos? Thanks .

I don’t know about these specific demos, but it seems to me that you are
trying to run a ruby program with a tcl interpreter. Try “ruby hello”
instead of “wish83 hello” and it should work. Maybe “ruby hello.rb”.

Thanks, but according to the “readme”, these demos file should run under
wish shell. I have tried to run them using “ruby hello.rb” and there is no
error message but it doesn’t work. All of these demo files are *.rb files.

Sorry. Just to test, I downloaded the demos from
http://www.ugcs.caltech.edu/~rise/tk-demos/ , installed the libraries
libtcltk-ruby and libtk-ruby, and tried “ruby hello” and a little window
appeared with the message “Hello Ruby World!”. So I can’t reproduce your
problem.

I suppose you installed the needed libraries?

And I suppose you didn’t miss the little window ;)?

You can try with “ruby -d hello” to see what the interpreter is doing.

Thank you evry much. Your mails are really helpful. May i ask you to try
other files( such as image1.rb)? There are many errors and I can’t figure it
out

Thanks again.

···

----- Original Message -----
From: “Carlos” angus@quovadis.com.ar
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Saturday, June 08, 2002 2:49 PM
Subject: Re: How to view the ruby-tk81-demos-english

Thanks, but according to the “readme”, these demos file should run
under
wish shell. I have tried to run them using “ruby hello.rb” and there is
no
error message but it doesn’t work. All of these demo files are *.rb
files.

Sorry. Just to test, I downloaded the demos from
http://www.ugcs.caltech.edu/~rise/tk-demos/ , installed the libraries
libtcltk-ruby and libtk-ruby, and tried “ruby hello” and a little window
appeared with the message “Hello Ruby World!”. So I can’t reproduce your
problem.

I suppose you installed the needed libraries?

And I suppose you didn’t miss the little window ;)?

You can try with “ruby -d hello” to see what the interpreter is doing.

Thank you evry much. Your mails are really helpful. May i ask you to try
other files( such as image1.rb)? There are many errors and I can’t figure it
out

I think these files are not supposed to be run directly. The script “widget”
calls them. (These files don’t even have “require ‘tk’” at the beginning, so
they can hardly work).

Just run “ruby widget” and you will be able to run these other scripts and
see their code.

Good luck.

Thank you so much. Now I try to run these scripts and learn how to use
ruby/tk.

···

----- Original Message -----
From: “Carlos” angus@quovadis.com.ar
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Sunday, June 09, 2002 3:32 PM
Subject: Re: How to view the ruby-tk81-demos-english

Thank you evry much. Your mails are really helpful. May i ask you to try
other files( such as image1.rb)? There are many errors and I can’t
figure it
out

I think these files are not supposed to be run directly. The script
“widget”
calls them. (These files don’t even have “require ‘tk’” at the beginning,
so
they can hardly work).

Just run “ruby widget” and you will be able to run these other scripts and
see their code.

Good luck.