ruby-1.8.1/ext/tk/sample/demos-en/ : none works!

P

Paul

Hi,

[Solaris 8]

I tried running the scripts under ruby-1.8.1/ext/tk/sample/demos-en/
and none of them seem to work:

~/ruby-1.8.1/ext/tk/sample/demos-en> ruby filebox.rb
filebox.rb:14: uninitialized constant TkToplevel (NameError)

So I edit filebox.rb and add 'require tk', and re-run:

/export/users/paul/local/lib/ruby/1.8/tk.rb:1623:in `__invoke':
unknown option "-positionWindow" (RuntimeError)
from /export/users/paul/local/lib/ruby/1.8/tk.rb:1623:in
`_invoke'
from /export/users/paul/local/lib/ruby/1.8/tk.rb:1027:in
`tk_call'
from /export/users/paul/local/lib/ruby/1.8/tk.rb:3848:in
`configure'
from /export/users/paul/local/lib/ruby/1.8/tk.rb:3783:in
`method_missing'
from filebox.rb:18
from filebox.rb:15:in `new'
from filebox.rb:15:in `new'
from filebox.rb:15

Has anyone got any of these demos to work??!!! On a positive note, I
can get almost all of the scripts under ~/ruby-1.8.1/ext/tk/sample to
work fine.

Paul
 
H

Hidetoshi NAGAI

Hi,

From: (e-mail address removed) (Paul)
Subject: ruby-1.8.1/ext/tk/sample/demos-en/ : none works!
Date: Wed, 7 Jan 2004 12:46:43 +0900
Message-ID: said:
Has anyone got any of these demos to work??!!! On a positive note, I
can get almost all of the scripts under ~/ruby-1.8.1/ext/tk/sample to
work fine.

Most of demos-en samples are started by a launcher script 'widget'.
Please run 'widget' script and click "Common Dialogs 2. File selection
dialog." It will call filebox.rb.
 
N

nobu.nokada

Hi,

At Sun, 15 May 2005 00:35:30 +0900,
neodrace wrote in [ruby-talk:142638]:
... at least thats what ya consider 4 non-win os, as for win you have to
make small changes to the source, here's my suggestion: since cat doesnt
work for use we go with the dos equivalent TYPE, but wait: dos uses \'es
instead of /'es ... so, inside widget.rb change:

It already has no longer used an external command there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,731
Latest member
MarcyGipso

Latest Threads

Top