summaryrefslogtreecommitdiff
path: root/lib/tk.rb
diff options
context:
space:
mode:
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