From a8852f4ad9b57d829de228034258634beeb52ff9 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 21 Jan 1998 06:35:17 +0000 Subject: [PATCH] tk.rb: update dropped git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@37 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/tk.rb | 9 +++++++++ 1 file changed, 9 insertions(+) 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