blob: 5188fe1c8ce9d00f7fcbf77c3d458d5267021d82 (
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' => 'exit').pack('fill'=>'x')
Tk.mainloop
|