# omake2.rb

require 'tk'

v1 = TkVariable.new
t1 = TkEntry.new(nil,'textvariable'=>v1)
t2 = TkButton.new(nil,'text'=>'clear','command'=>proc{t1.delete(0,'end')})

t1.pack
t2.pack

Tk.mainloop