summaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tk.rb
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-06 16:08:45 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-06 16:08:45 +0000
commit6bf9ece91864715512d79756017221aae0305d71 (patch)
tree32d06db26fce4ab1316991f8a349eb0e12791b62 /ext/tk/lib/tk.rb
parent246d3cd4ceee71690aceb3feb8e0e57d4c69cc35 (diff)
downloadruby-6bf9ece91864715512d79756017221aae0305d71.tar.gz
ruby-6bf9ece91864715512d79756017221aae0305d71.tar.xz
ruby-6bf9ece91864715512d79756017221aae0305d71.zip
* ext/tk/lib/tk.rb: add Tk.errorInfo and Tk.errorCode
* ext/tk/lib/tkextlib/bwidget.rb: bug fix git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tk.rb')
-rw-r--r--ext/tk/lib/tk.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb
index 499d71d87..0943e5406 100644
--- a/ext/tk/lib/tk.rb
+++ b/ext/tk/lib/tk.rb
@@ -1607,6 +1607,16 @@ module Tk
end
end
+ def Tk.errorInfo
+ INTERP._invoke_without_enc('global', 'errorInfo')
+ INTERP._invoke_without_enc('set', 'errorInfo')
+ end
+
+ def Tk.errorCode
+ INTERP._invoke_without_enc('global', 'errorCode')
+ tk_split_simplelist(INTERP._invoke_without_enc('set', 'errorCode'))
+ end
+
def root
TkRoot.new
end