summaryrefslogtreecommitdiff
path: root/jni/ruby/ext/tk/sample/demos-jp/hello
blob: e942f3d85183c59919b95bf40ac51a08a48b8358 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'tk'

TkButton.new(nil,
        'text'=>"こんにちは、世界",
        'command'=>proc{print "こんにちは、世界\n"; exit}
).pack

Tk.mainloop