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