2
# This script generates a counter with start and stop buttons.
9
pack('side'=>'bottom', 'fill'=>'both')
20
pack('side'=>'left','fill'=>'both','expand'=>'yes')
28
pack('side'=>'right','fill'=>'both','expand'=>'yes')
36
if $stopped then return end
37
Tk.after 50, proc{tick}
43
$label.text format("%d.%02d", $seconds, $hundredths)
47
root.bind "Control-c", proc{root.destroy}
48
root.bind "Control-q", proc{root.destroy}