1999-08-13 01:37:52 -04:00
|
|
|
require "tk"
|
|
|
|
|
|
|
|
TkButton.new(nil,
|
|
|
|
'text' => 'hello',
|
|
|
|
'command' => proc{print "hello\n"}).pack('fill'=>'x')
|
|
|
|
TkButton.new(nil,
|
|
|
|
'text' => 'quit',
|
2003-09-07 03:10:44 -04:00
|
|
|
'command' => proc{exit}).pack('fill'=>'x')
|
1999-08-13 01:37:52 -04:00
|
|
|
|
|
|
|
Tk.mainloop
|