Bug in ruby/tk in ruby 1.8.0?

Hi,

I tried to execute the ruby/tk demos, which you can find at
http://www.havenrock.com/developer/ruby-tk/
Several, e.g. rolodex, of them don’t start, always with the following
message:

alex@linux:/usr/src/rtkdemos-en$ ruby rolodex
/usr/local/lib/ruby/1.8/tk.rb:3929:in initialize': wrong number of arguments(1 for 0) (ArgumentError) from /usr/local/lib/ruby/1.8/tk.rb:3929:innew’
from /usr/local/lib/ruby/1.8/tk.rb:3929:in `new’
from rolodex:196

tk.rb at line 3929 looks like this:

def TkRoot.new(keys=nil, &b)
unless TkCore::INTERP.tk_windows[’.’]
TkCore::INTERP.tk_windows[’.’] =
super(:without_creating=>true, :widgetname=>’.’) '## <— this line

end 

What’s wrong with this ?

Bye
Alex

···


NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien…
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++

Hi,

···

From: “Alexander Neundorf” a.neundorf-work@gmx.net
Subject: bug in ruby/tk in ruby 1.8.0 ?
Date: Fri, 28 Nov 2003 16:10:07 +0900
Message-ID: 19704.1070003404@www37.gmx.net

I tried to execute the ruby/tk demos, which you can find at
Home - Havenrock

The newest widget demos (bug fixed and new samples are added) are
included into the Ruby source archive.
You can find them at /ext/tk/sample/demos-en/ directory.

Several, e.g. rolodex, of them don’t start, always with the following
message:

I cannot re-generate your trouble on my working directory for 1.8.1.
Could you try 1.8.1-preview2 or newest CVS version?

                              Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)

I cannot re-generate your trouble on my working directory for 1.8.1.

This is the method Rolodex#initialize in its version which take 0 argument

Guy Decoux

Hi,

···

From: ts decoux@moulon.inra.fr
Subject: Re: bug in ruby/tk in ruby 1.8.0 ?
Date: Fri, 28 Nov 2003 19:35:17 +0900
Message-ID: 200311281035.hASAZB228022@moulon.inra.fr

This is the method Rolodex#initialize in its version which take 0 argument

Thank you. I understood.
Please try demos included in the ruby source archive. > Alex

                              Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)