summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tk.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tk.rb')
-rw-r--r--ext/tk/lib/tk.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb
index 9c7a0982c2..cec589047f 100644
--- a/ext/tk/lib/tk.rb
+++ b/ext/tk/lib/tk.rb
@@ -4053,8 +4053,8 @@ class TkWindow<TkObject
return info
end
- def pack_propagate(mode = nil)
- if mode
+ def pack_propagate(mode=None)
+ if mode == None
tk_call('pack', 'propagate', epath, mode)
else
bool(tk_call('pack', 'propagate', epath))
@@ -4141,8 +4141,8 @@ class TkWindow<TkObject
list(tk_call('grid', 'location', epath, x, y))
end
- def grid_propagate(mode=nil)
- if mode
+ def grid_propagate(mode=None)
+ if mode == None
tk_call('grid', 'propagate', epath, mode)
else
bool(tk_call('grid', 'propagate', epath))