ruby/Tk auto close root automatically
require 'tk'
TkRoot.new {geometry '300x200+100+100'}
TkAfter.new(3000, # milliseconds
1,
proc{exit} # what to call when the timer expires
).start
Tk.mainloop
require 'tk'
TkRoot.new {geometry '300x200+100+100'}
TkAfter.new(3000, # milliseconds
1,
proc{exit} # what to call when the timer expires
).start
Tk.mainloop