summaryrefslogtreecommitdiff
path: root/ext/tk
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-25 22:36:50 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-25 22:36:50 +0000
commit90e087b6977e564fb2ebcff9cd02dda97e9ea5a7 (patch)
tree9da8397e32160d69e1619a0aa8a26b759b858bb3 /ext/tk
parentb6beb8d943761fe1d754ba4de5ba360018b8e767 (diff)
add TkRoot.destroy
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk')
-rw-r--r--ext/tk/lib/tk.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb
index a71ac7590e..9cdd3b918e 100644
--- a/ext/tk/lib/tk.rb
+++ b/ext/tk/lib/tk.rb
@@ -4453,6 +4453,10 @@ class TkRoot<TkWindow
def path
"."
end
+
+ def TkRoot.destroy
+ TkCore::INTERP._invoke('destroy', '.')
+ end
end
class TkToplevel<TkWindow