1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/tk/sample/cmd_resource
nagai 581ca6097e * ext/tk/lib/tk/image.rb: bug fix
* ext/tk/lib/tk/optiondb.rb: support definition of command resources on widgets


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-04 03:56:00 +00:00

5 lines
258 B
Text

*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"}