require "phi"

form = Phi::Form.new

act = Phi::Action.new
act.caption = "action!"
act.on_execute = proc{form.caption = "act!!"}

button = Phi::Button.new form
button.action = act

form.show
Phi.mainloop
