require 'tk'root = TkRoot.newbutton = TkButton.new(root) { text "Hello, World!" command proc { puts "I said, Hello!" }}button.packTk.mainloop