diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-21 20:45:27 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-21 20:45:27 +0000 |
commit | 56761e29f655407aa7bbbf27072f9ff6bf055757 (patch) | |
tree | 32d75a053657af1e0fd7d0b50956b5e55cdd4e93 /ext/tk/README.fork | |
parent | 11784c2c4b735f77a503c2e7149ba069caf1cf56 (diff) | |
download | ruby-56761e29f655407aa7bbbf27072f9ff6bf055757.tar.gz |
* ext/tk/lib/tk.rb: add Tk.appsend_deny and improve Tk.rb_appsend
* ext/tk/lib/tk.rb, ext/tk/lib/tk/*.rb : replace obj.send() -> obj.__send__()
* ext/tk/lib/remote-tk.rb: add a new library which create an object to
control a Tk interpreter on the other process
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/README.fork')
-rw-r--r-- | ext/tk/README.fork | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/tk/README.fork b/ext/tk/README.fork index cda89b003c..707d78fc12 100644 --- a/ext/tk/README.fork +++ b/ext/tk/README.fork @@ -4,6 +4,11 @@ process). In the library 'tk.rb', a Tk interpreter is initialized. Therefore, if you want running Tk under a child process, please call "require 'tk'" in the child process. +# If do fork and exec(<new Ruby/Tk>) on the child process, you can +# control Ruby/Tk interpreter on the child process by 'send' command +# of Tcl/Tk. About this, please see Tk.appsend and Tk.rb_appsend, or +# 'remote-tk.rb' and the sample 'sample/remote-ip_sample.rb'. + For example, the following sample1 will NOT work, and sample2 will work properly. @@ -26,4 +31,4 @@ TkButton.new(:text=>'QUIT', :command=>proc{exit}).pack Tk.mainloop ------------------------------------------------------------- - 2004/04/20 Hidetoshi NAGAI + 2004/05/22 Hidetoshi NAGAI |