1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/tk/sample/demos-jp/hello
ayumin 2fecb27eb4 Merge branch 'tk_utf8' into trunk
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-14 17:25:37 +00:00

10 lines
192 B
Ruby

#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'tk'
TkButton.new(nil,
'text'=>"こんにちは、世界",
'command'=>proc{print "こんにちは、世界\n"; exit}
).pack
Tk.mainloop