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')

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

draw2
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

draw2() Instance Public methods Lighting the match

2025-01-10 15:47:30
box
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

box(x, y, r) Instance Public methods Helper functions

2025-01-10 15:47:30
do_display
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

do_display() Instance Public methods

2025-01-10 15:47:30
move12
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

move12(step = nil) Instance Public methods

2025-01-10 15:47:30
draw17
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

draw17() Instance Public methods Cat

2025-01-10 15:47:30
move22
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

move22(step = nil) Instance Public methods

2025-01-10 15:47:30
move23
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

move23(step = nil) Instance Public methods

2025-01-10 15:47:30
new
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

new(parent) Class Public methods

2025-01-10 15:47:30
h20
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

h20(y, f) Instance Public methods

2025-01-10 15:47:30
active_GUI
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

active_GUI(var1, var2, op) Instance Public methods

2025-01-10 15:47:30