diff options
| author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-04 03:56:00 +0000 |
|---|---|---|
| committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-04 03:56:00 +0000 |
| commit | fb0cfd5518289474e2f34cba89abe7f523571042 (patch) | |
| tree | 939468cea4126f705fce4373ed2a6bc89c3a0f92 /ext/tk/sample/cmd_resource | |
| parent | 3bdcf449068afa615e8bf4b835f120709b0b5df6 (diff) | |
| download | ruby-fb0cfd5518289474e2f34cba89abe7f523571042.tar.gz ruby-fb0cfd5518289474e2f34cba89abe7f523571042.tar.xz ruby-fb0cfd5518289474e2f34cba89abe7f523571042.zip | |
* 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/branches/ruby_1_8@6993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample/cmd_resource')
| -rw-r--r-- | ext/tk/sample/cmd_resource | 5 |
1 files changed, 5 insertions, 0 deletions
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"} |
