blob: 5e86ad7e3eafdd2ffd64ade5d8c18fa8355bbbd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env ruby
require 'tk'
#unless /^8\.[1-9]/ =~ Tk::TCL_VERSION && !Tk::JAPANIZED_TK
# require 'tkencoding'
#end
TkButton.new(nil,
'text'=>"Hello Ruby world!",
'font'=>TkFont.new('k14'),
'command'=>proc{print "Hello Ruby world!\n"; exit}
).pack
Tk.mainloop
|