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
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Total Pageviews
No comments:
Post a Comment