summaryrefslogtreecommitdiff
path: root/lib/tk.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-01-21 06:35:17 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-01-21 06:35:17 +0000
commita8852f4ad9b57d829de228034258634beeb52ff9 (patch)
tree9459f73bf5b9e6c9601f9e3f4708682bf0e16d11 /lib/tk.rb
parent8373f59a324eb054b6ca8de8fe1d2a1634391ae4 (diff)
tk.rb: update dropped
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@37 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/tk.rb')
-rw-r--r--lib/tk.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/tk.rb b/lib/tk.rb
index 2cbbec02a8..1a3ae2933d 100644
--- a/lib/tk.rb
+++ b/lib/tk.rb
@@ -241,6 +241,15 @@ module TkComm
uninstall_cmd myid
})
end
+
+ def update(idle=nil)
+ if idle
+ tk_call 'update', 'idletasks'
+ else
+ tk_call 'update'
+ end
+ end
+
end
module TkCore