require 'phi' form = Phi::Form.new(:form1, 'form‚Ĺ‚·') form.show form.on_click = proc do print "Hello World\r\n" end Phi.mainloop