diff options
| author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-01 04:58:55 +0000 |
|---|---|---|
| committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-01 04:58:55 +0000 |
| commit | 79616a65ce08cad4d694f9f774b2a99b921bfd26 (patch) | |
| tree | 3e0f90d10acb95b0dacef42582e26e4e7f378489 /ext/tk | |
| parent | 7577de10c98fd3aaf55c7a92ad3e872efbeccc46 (diff) | |
| download | ruby-79616a65ce08cad4d694f9f774b2a99b921bfd26.tar.gz ruby-79616a65ce08cad4d694f9f774b2a99b921bfd26.tar.xz ruby-79616a65ce08cad4d694f9f774b2a99b921bfd26.zip | |
* forgot to commit a sample script
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk')
| -rw-r--r-- | ext/tk/MANIFEST | 1 | ||||
| -rw-r--r-- | ext/tk/sample/tkoptdb-safeTk.rb | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/ext/tk/MANIFEST b/ext/tk/MANIFEST index 704a33d58..c20ee7ffa 100644 --- a/ext/tk/MANIFEST +++ b/ext/tk/MANIFEST @@ -29,6 +29,7 @@ sample/tkfrom.rb sample/tkhello.rb sample/tkline.rb sample/tkmenubutton.rb +sample/tkoptdb-safeTk.rb sample/tkoptdb.rb sample/resource.ja sample/resource.en diff --git a/ext/tk/sample/tkoptdb-safeTk.rb b/ext/tk/sample/tkoptdb-safeTk.rb new file mode 100644 index 000000000..169cd3c17 --- /dev/null +++ b/ext/tk/sample/tkoptdb-safeTk.rb @@ -0,0 +1,18 @@ +#!/usr/bin/env ruby + +require 'multi-tk' + +TkMessage.new(:text => <<EOM).pack +This is a sample of the safe-Tk slave interpreter. \ +On the slave interpreter, 'tkoptdb.rb' demo is running. +The window shown this message is a root widget of \ +the default master interpreter. The other window \ +is a toplevel widget of the master interpreter, and it \ +has a container frame of the safe-Tk slave interpreter. \ +You can delete the slave by the button on the toplevel widget. +EOM + +file = File.expand_path('tkoptdb.rb', File.dirname(__FILE__)) +MultiTkIp.new_safeTk{load file} + +# mainloop is started on 'tkoptdb.rb' |
