summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/tutorial/t1/t1.rb
blob: 70f1bfeba6bb3a63f4a81da3101aa31072635d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env ruby
$VERBOSE = true; $:.unshift File.dirname($0)

require 'Qt'

a = TQt::Application.new(ARGV)
hello = TQt::PushButton.new('Hello World!', nil)
hello.resize(100, 30)
a.setMainWidget(hello)
hello.show()
a.exec()