Type:
Class

# label msg = TkLabel.new($goldberg_demo) {

font 'Arial 10'
wraplength '4i'
justify 'left'
text "This is a demonstration of just how complex you can make your animations become. Click the ball to start things moving!\n\n\"Man will always find a difficult means to perform a simple task\"\n - Rube Goldberg"

} msg.pack('side'=>'top')

# frame TkFrame.new($goldberg_demo) {|frame|

TkButton.new(frame) {
  text 'Dismiss'
  command proc{
    tmppath = $goldberg_demo
    $goldberg_demo = nil
    tmppath.destroy
  }
}.pack('side'=>'left', 'expand'=>'yes')

TkButton.new(frame) {
  text 'See Code'
  command proc{showCode 'goldberg'}
}.pack('side'=>'left', 'expand'=>'yes')

}.pack('side'=>'bottom', 'fill'=>'x', 'pady'=>'2m')

#########################################

# label msg = TkLabel.new($goldberg_demo) {

font 'Arial 10'
wraplength '4i'
justify 'left'
text "これは、あなたが自分のアニメーションをいかに入り組んだものにできるかを示すというだけのためのデモです。ボールをクリックすれば物が動き始めます!\n\n\"Man will always find a difficult means to perform a simple task\"\n - Rube Goldberg"

} msg.pack('side'=>'top')

# frame TkFrame.new($goldberg_demo) {|frame|

TkButton.new(frame) {
  text '閉じる'
  command proc{
    tmppath = $goldberg_demo
    $goldberg_demo = nil
    tmppath.destroy
  }
}.pack('side'=>'left', 'expand'=>'yes')

TkButton.new(frame) {
  text 'コード参照'
  command proc{showCode 'goldberg'}
}.pack('side'=>'left', 'expand'=>'yes')

}.pack('side'=>'bottom', 'fill'=>'x', 'pady'=>'2m')

#########################################

go

go(who = nil) Instance Public methods

2015-06-05 16:35:26
draw20

draw20() Instance Public methods Water pouring

2015-06-05 15:49:21
move3

move3(step = nil) Instance Public methods

2015-06-05 18:18:23
move4

move4(step = nil) Instance Public methods

2015-06-05 18:24:04
draw16

draw16() Instance Public methods Bell

2015-06-05 15:15:47
draw7

draw7() Instance Public methods On/off switch

2015-06-05 16:25:27
move17

move17(step = nil) Instance Public methods

2015-06-05 17:34:30
draw5

draw5() Instance Public methods Mouse

2015-06-05 16:14:55
draw8

draw8() Instance Public methods Electricity to the fan

2015-06-05 16:26:27
draw9

draw9() Instance Public methods Fan

2015-06-05 16:27:24