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

retquire 'Qt'

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