Fredag den 25. Januar 2008 skrev Yvon Thoraval: > I had successfully tested ruby 1.9 (early december 2007) with Tk, but right > now, with ruby-1.9.0-0 and the same script : > #! /usr/bin/env ruby19 > > require 'tk' > > root = TkRoot.new { title "Ex1" } # <<<< line 4 > TkLabel.new(root) { > text 'Hello, World!' > pack { padx 15 ; pady 15; side 'left' } > } > Tk.mainloop > > i get the following : > > /Users/yt/lib/ruby/1.9.0/tk/root.rb:38:in `<class:Root>' : uninitialized > constant Tk::Root::TkRoot (NameError) > from /Users/yt/lib/ruby/1.9.0/tk/root.rb:8:in `<top (required)>' > from /Users/yt/work/Ruby19/Tk/simple.rb:4:in `<main>' > > some workaround ??? Hi That problem has been reported on rubyforge: http://rubyforge.org/tracker/index.php?func=detail&aid=16514&group_id=426&atid=1698 The bugreport contains a patch. You may also wan't to look at #16632 and #16634 which are (somewhat) similar issues. br. Christian Surlykke