File: hello.rb

Project: Invitation to Ruby

require 'tk'

TkButton.new {
  text "Hello"
  command proc { puts "Hi There!" }
}.pack

Tk.mainloop


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