diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-24 16:46:07 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-24 16:46:07 +0000 |
commit | 4d5109d84de577c1c897b1722c9e58b64b341ab4 (patch) | |
tree | c911d2fd21b63dfccc1610f3afdc023233b50e2f /ext/tk/sample/resource.ja | |
parent | 7169c3cec2ef735c259e2140803acc4667c18b0c (diff) | |
download | ruby-4d5109d84de577c1c897b1722c9e58b64b341ab4.tar.gz ruby-4d5109d84de577c1c897b1722c9e58b64b341ab4.tar.xz ruby-4d5109d84de577c1c897b1722c9e58b64b341ab4.zip |
tk.rb :
* TkToplevel, TkFrame, TkPanedwindow, TkOptionDB : bug fix
* TkOptionDB : make it more secure to use procs defined on resourceDB
sample/tkoptdb.rb, sample/resource.ja, sample/resource.en :
* sample script how to use TkOptionDB.
resource.ja and resource.en are samples of resource definition file
which are read by tkoptdb.rb.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample/resource.ja')
-rw-r--r-- | ext/tk/sample/resource.ja | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/tk/sample/resource.ja b/ext/tk/sample/resource.ja new file mode 100644 index 000000000..61098db4f --- /dev/null +++ b/ext/tk/sample/resource.ja @@ -0,0 +1,12 @@ +# +# see Tcl/Tk's "options" manual for "Database Name" and "Database Class" +# +*BtnFrame.borderWidth: 5 +*BtnFrame.relief: ridge +*BtnFrame.Button.background: wheat +*BtnFrame.Button.foreground: red +*hello.text: こんにちは +*quit.text: 終了 +*BTN_CMD.show_msg: {|arg| print "($SAFE=#{$SAFE}) ";\ + print "こんにちは!! #{arg} のサンプルです.\n"} +*BTN_CMD.bye_msg: {print "($SAFE=#{$SAFE}) さようなら.\n"} |