OK, I took one of the short demos, label.rb, inserted require 'tk'at
the top and ran it. Got this message:
/cygdrive/c/ruby/lib/ruby/1.6/tk.rb:819:in `_invoke': unknown option
"-positionWindow" (RuntimeError)
from /cygdrive/c/ruby/lib/ruby/1.6/tk.rb:819:in `_invoke'
from /cygdrive/c/ruby/lib/ruby/1.6/tk.rb:559:in `tk_call'
from /cygdrive/c/ruby/lib/ruby/1.6/tk.rb:2000:in `configure'
from /cygdrive/c/ruby/lib/ruby/1.6/tk.rb:1958:in
`method_missing'
from C:\ruby\samples\tk\demos\label.rb:21
from C:\ruby\samples\tk\demos\label.rb:18:in `new'
from C:\ruby\samples\tk\demos\label.rb:18:in `new'
from C:\ruby\samples\tk\demos\label.rb:18
The code creates a TopLevel with:
# demo toplevel widget
$label_demo = TkToplevel.new {|w|
title("Label Demonstration")
iconname("label")
positionWindow(w)
}
If I comment out the #positionWindow, it bombs on trying to read an
image. If I comment out the image button, then label.rb runs but never
opens a window.
I'm out of ideas. Someone who has a clue, please help out.
Thanks,
Ron
Ronald E Jeffries
http://www.XProgramming.com
http://www.objectmentor.com