mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* forgot to commit a sample script
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5d8f3617e0
commit
c07f1bf06e
2 changed files with 19 additions and 0 deletions
|
@ -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
|
||||
|
|
18
ext/tk/sample/tkoptdb-safeTk.rb
Normal file
18
ext/tk/sample/tkoptdb-safeTk.rb
Normal file
|
@ -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'
|
Loading…
Reference in a new issue