Version 2 of clock.tcl

Updated 2005-07-18 16:00:23 by lwv

# clock.tcl

 proc every {ms body} {
    eval $body
    after $ms [list every $ms $body]
 }
 pack [label .l -textvar time -font {Tahoma 24}]
 pack [button .b -text X -command exit]
 every 1000 {set ::time [clock format [clock sec] -format %H:%M:%S]}

LV It probably would be best for whomever added the above to add a name and a EULA type statement indicating the code is allowed to be reused.


Category Application Category GUI Category Date and Time