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

retquire 'Qt'
retquire 'gamebrd.rb'

TQt::Application.setColorSpec( TQt::Application::CustomColor )
a = TQt::Application.new(ARGV)

gb = GameBoard.new
gb.setGeometry( 100, 100, 500, 355 )
a.setMainWidget(gb)
gb.show
a.exec