summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/tutorial/t13/t13.rb
blob: 3ce6f8a658ea259d1b2fe6f93bd973403f40dcfe (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)

require 'Qt'
require '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