From 75eec4c054e6bc8bd12c6a401d103c5a8de4d961 Mon Sep 17 00:00:00 2001 From: nagai Date: Mon, 4 Oct 2004 03:56:00 +0000 Subject: * ext/tk/lib/tk/image.rb: bug fix * ext/tk/lib/tk/optiondb.rb: support definition of command resources on widgets git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/sample/cmd_resource | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 ext/tk/sample/cmd_resource (limited to 'ext/tk/sample/cmd_resource') diff --git a/ext/tk/sample/cmd_resource b/ext/tk/sample/cmd_resource new file mode 100644 index 000000000..9cc491554 --- /dev/null +++ b/ext/tk/sample/cmd_resource @@ -0,0 +1,5 @@ +*BtnFrame.hello.text: HELLO +*BtnFrame.hello.command: ruby {puts "Hello World!!"} +*BTN_CMD.show_msg: {|arg| print "Hello, #{arg}!!\n"} +*hello.show_msg: {|arg| print "Hello, Hello, #{arg}!!\n"} +*hello.ZZZ.show_msg: {|arg| print "Hello, Hello, ZZZ:#{arg}!!\n"} -- cgit