diff options
author | (no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-21 00:09:33 +0000 |
---|---|---|
committer | (no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-21 00:09:33 +0000 |
commit | 019c1ad09b24359eb8dc5c1cee9660dd042c971e (patch) | |
tree | 094f74c5063c1db2283ea719926be322263faaba /ext/tk/sample/tcltklib/sample0.rb | |
parent | d4efecd69297c2c1978ca01815b61438dce72447 (diff) |
This commit was manufactured by cvs2svn to create tag 'v1_8_3'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_8_3@9263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample/tcltklib/sample0.rb')
-rw-r--r-- | ext/tk/sample/tcltklib/sample0.rb | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/ext/tk/sample/tcltklib/sample0.rb b/ext/tk/sample/tcltklib/sample0.rb deleted file mode 100644 index cd4c8069b4..0000000000 --- a/ext/tk/sample/tcltklib/sample0.rb +++ /dev/null @@ -1,39 +0,0 @@ -#! /usr/local/bin/ruby -vd - -# tcltklib ライブラリのテスト - -require "tcltklib" - -def test - # インタプリタを生成する - ip1 = TclTkIp.new() - - # 評価してみる - print ip1._return_value().inspect, "\n" - print ip1._eval("puts {abc}").inspect, "\n" - - # ボタンを作ってみる - print ip1._return_value().inspect, "\n" - print ip1._eval("button .lab -text exit -command \"destroy .\"").inspect, - "\n" - print ip1._return_value().inspect, "\n" - print ip1._eval("pack .lab").inspect, "\n" - print ip1._return_value().inspect, "\n" - - # インタプリタから ruby コマンドを評価してみる -# print ip1._eval(%q/ruby {print "print by ruby\n"}/).inspect, "\n" - print ip1._eval(%q+puts [ruby {print "print by ruby\n"; "puts by tcl/tk"}]+).inspect, "\n" - print ip1._return_value().inspect, "\n" - - # もう一つインタプリタを生成してみる - ip2 = TclTkIp.new() - ip2._eval("button .lab -text test -command \"puts test ; destroy .\"") - ip2._eval("pack .lab") - - TclTkLib.mainloop -end - -test -GC.start - -print "exit\n" |