Create a new window : Main Window « Tk « Ruby






Create a new window


#!/usr/bin/env ruby

require 'tk'
hello = TkRoot.new
TkLabel.new( hello ) do
    text "\n  Hello, myValue!  \n"
    pack
end
Tk.mainloop

 








Related examples in the same category

1.Set size of main window
2.The Frame Widget