summaryrefslogtreecommitdiffstats
path: root/ext/tk/sample/resource.ja
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-24 16:46:07 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-24 16:46:07 +0000
commit4d5109d84de577c1c897b1722c9e58b64b341ab4 (patch)
treec911d2fd21b63dfccc1610f3afdc023233b50e2f /ext/tk/sample/resource.ja
parent7169c3cec2ef735c259e2140803acc4667c18b0c (diff)
downloadruby-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.ja12
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"}