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