mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 17:14:01 +02:00
* 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:
parent
03f61b4177
commit
a727cf52cc
5 changed files with 22 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue