File: guicallbackdemo.rb

Project: Invitation to Ruby

#!/usr/bin/env ruby

require 'guicallback'
    
gui_button = Button.new
gui_button.when_pressed {
  puts "Someone pressed my button"
}

# ... Some time later ...
gui_button.press


[ Index ][ Table of Contents ]
Generated by [ source2html ]