* ext/tk/lib/tk.rb: add Tk.errorInfo and Tk.errorCode

* ext/tk/lib/tkextlib/bwidget.rb: bug fix


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagai 2004-10-06 16:08:45 +00:00
parent 03f61b4177
commit a727cf52cc
5 changed files with 22 additions and 2 deletions

View file

@ -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