diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-21 08:47:22 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-21 08:47:22 +0000 |
commit | e8ab40d239baa5a473e81731c828f2c75dfcb06d (patch) | |
tree | 86e65b94768a344fbb17971258fb32146c7cca44 /ext/tk/lib/tkdialog.rb | |
parent | aa49df66ae0f39d9480cc20d19d7225b762296a0 (diff) | |
download | ruby-e8ab40d239baa5a473e81731c828f2c75dfcb06d.tar.gz |
Ruby/Tk libraries except tk.rb :
* remove direct-accesses to a TkComm::INTERP
* remove direct-accesses to a TkComm::INITIALIZE_TARGETS
* use TkINTERP_SETUP_SCRIPTS constant for setting up the interpreter
tcltklib.c :
* support to create a safe interpreter with safe-Tk ( Tk8.x )
you can test it by the following
---------------------------------------------
require 'tk'
safeip = Tk::INTERP._eval('::safe::interpCreate')
Tk::INTERP._eval('::safe::loadTk ' + safeip)
Tk::INTERP._eval(safeip + ' eval button .b -text SlaveIP -command exit')
Tk::INTERP._eval(safeip + ' eval pack .b')
Tk.mainloop
---------------------------------------------
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkdialog.rb')
-rw-r--r-- | ext/tk/lib/tkdialog.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/tk/lib/tkdialog.rb b/ext/tk/lib/tkdialog.rb index 31d50fc67b..fd6e041576 100644 --- a/ext/tk/lib/tkdialog.rb +++ b/ext/tk/lib/tkdialog.rb @@ -143,10 +143,10 @@ class TkDialog2 < TkWindow default_button = @default_button end default_button = '{}' if default_button == nil - INTERP._eval('eval {global '+@var.id+';'+@config+ - 'set '+@var.id+' [tk_dialog '+ - @path+" "+@title+" {#{@message}} "+@bitmap+" "+ - String(default_button)+" "+@buttons.join(' ')+']}') + Tk.ip_eval('eval {global '+@var.id+';'+@config+ + 'set '+@var.id+' [tk_dialog '+ + @path+" "+@title+" {#{@message}} "+@bitmap+" "+ + String(default_button)+" "+@buttons.join(' ')+']}') end def value |