summaryrefslogtreecommitdiff
path: root/sample/tktimer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/tktimer.rb')
-rw-r--r--sample/tktimer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/sample/tktimer.rb b/sample/tktimer.rb
index b8b3617..34377e2 100644
--- a/sample/tktimer.rb
+++ b/sample/tktimer.rb
@@ -22,6 +22,7 @@ TkButton.new {
TkButton.new {
text 'Stop'
command proc{
+ exit if $stopped
$stopped = TRUE
}
pack('side'=>'right','fill'=>'both','expand'=>'yes')