#!/usr/koeki/bin/ruby # coding: euc-jp require 'tk' TkLabel.new("text" => " Hello, world! ") { bind('1', proc {exit}) }.pack Tk.mainloop