#!/usr/koeki/bin/ruby -Ke require 'tk' TkLabel.new("text"=>"º£Æü¤Î°ì¸À").pack txt = TkText.new("width"=>40, "height"=>3).pack TkButton.new("text"=>"ÅÐÏ¿") { command(proc { printf("Éü¾§: %s\n", txt.value) if txt.value > "" exit(0) }) }.pack("side"=>"left", "padx"=>5, "pady"=>5) Tk.mainloop