diff options
Diffstat (limited to 'qtruby/rubylib/tutorial/t14/t14.rb')
-rwxr-xr-x | qtruby/rubylib/tutorial/t14/t14.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/qtruby/rubylib/tutorial/t14/t14.rb b/qtruby/rubylib/tutorial/t14/t14.rb new file mode 100755 index 00000000..817dfe70 --- /dev/null +++ b/qtruby/rubylib/tutorial/t14/t14.rb @@ -0,0 +1,14 @@ +#!/usr/bin/env ruby +$VERBOSE = true; $:.unshift File.dirname($0) + +require 'Qt' +require 'gamebrd.rb' + +Qt::Application.setColorSpec( Qt::Application::CustomColor ) +a = Qt::Application.new(ARGV) + +gb = GameBoard.new +gb.setGeometry( 100, 100, 500, 355 ) +a.setMainWidget(gb) +gb.show +a.exec |