require 'tk'
root = TkRoot.new { title "Hello world" }
TkLabel.new(root) do
text 'Hello world!'
end
Tk.mainloop
Where can i download Ruby TK? i googled but didnt find it.
require 'tk'
root = TkRoot.new { title "Hello world" }
TkLabel.new(root) do
text 'Hello world!'
end
Tk.mainloop
Where can i download Ruby TK? i googled but didnt find it.
On linux it is contained in the libtcltk-ruby package.
sudo apt-get install libtcltk-ruby
On windows, the bindings are included with the one-click ruby installer.
-John