1#!/usr/bin/env ruby 2require 'tk' 3require 'tkextlib/iwidgets' 4 5tf = Tk::Iwidgets::Timefield.new(:command=>proc{puts(tf.get)}) 6tf.pack(:fill=>:x, :expand=>true, :padx=>10, :pady=>10) 7 8Tk.mainloop 9