Hi,
first usenet-post ever, lets se if I can get it right.
The following code:
require 'tk’
root = TkRoot.new
button = TkButton.new(root) {
text 'tjo’
command proc {
[3,2,3,4]. each { |a|
puts a
decommenting the line below will remove the error
5
}
}
pack
}
generates an error when you press the button.
Error: /usr/lib/ruby/1.8/tk.rb:274:in _get_eval_string':undefined method
array2tk_list’ for TkComm:Module
ruby 1.8.0 (2003-07-28) [i686-linux-gnu]
pre5
/Daniel Forchheimer (upiom)