Pages
About Me
Entertainment
Technologies
Practice Programs
VB Art Gallery
Contact Me
tk Module
Write Ruby program which uses tk module to display a window.
tkModule.rb
require 'tk'
root = TkRoot.new { title "Hello, World!" }
TkLabel.new(root) do
text 'Hello, RISE!'
pack { padx 15 ; pady 15; side 'left' }
end
Tk.mainloop
OUTPUT
Newer Post
Older Post
Home