Answer the question
In order to leave comments, you need to log in
Ruby TK. How to make it work?
Guys, tell me, what could be the matter? I'm trying to make an example like in a book in which you need to connect tk, but it gives out this:
/home/matt/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- tk (LoadError)
from /home/matt/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from p001hello.rb:1:in `<main>'
require 'tk'
hello = TkRoot.new
TkLabel.new(hello) do
text "\n Hello, Matz! \n"
pack
end
Tk.mainloop
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question