summaryrefslogtreecommitdiff
path: root/ext/tk/sample/tktimer.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-09 01:42:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-09 01:42:48 +0000
commit5a80f0c530f267a5eeab9d8053784c581a4efa9c (patch)
tree3ed6023ae4a279ca730ccea2c7c705a6adf0b815 /ext/tk/sample/tktimer.rb
parentdfc9cb40057f74202206a90ea194fb5996b4eed6 (diff)
use true and false [ci skip]
* ext/tk/lib/tk/texttag.rb, ext/tk/sample/tcltklib/sample2.rb, ext/tk/sample/tkline.rb, ext/tk/sample/tktimer.rb: use true and false instead of TRUE and FALSE. * ext/win32ole/sample/ienavi.rb (stop_msg_loop): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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