ext/tk/sample/tkhello.rb


DEFINITIONS

This source file includes following functions.


   1  require "tk"
   2  
   3  TkButton.new(nil, 
   4               'text' => 'hello',
   5               'command' => proc{print "hello\n"}).pack('fill'=>'x')
   6  TkButton.new(nil,
   7               'text' => 'quit',
   8               'command' => 'exit').pack('fill'=>'x')
   9  
  10  Tk.mainloop