summaryrefslogtreecommitdiff
path: root/ext/tk/sample/tktimer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/sample/tktimer.rb')
-rw-r--r--ext/tk/sample/tktimer.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/tk/sample/tktimer.rb b/ext/tk/sample/tktimer.rb
index 4b6abae..b68d309 100644
--- a/ext/tk/sample/tktimer.rb
+++ b/ext/tk/sample/tktimer.rb
@@ -14,7 +14,7 @@ TkButton.new {
text 'Start'
command proc {
if $stopped
- $stopped = FALSE
+ $stopped = false
tick
end
}
@@ -24,14 +24,14 @@ TkButton.new {
text 'Stop'
command proc{
exit if $stopped
- $stopped = TRUE
+ $stopped = true
}
pack('side'=>'right','fill'=>'both','expand'=>'yes')
}
$seconds=0
$hundredths=0
-$stopped=TRUE
+$stopped=true
def tick
if $stopped then return end