summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/tutorial/t13/t13.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qtruby/rubylib/tutorial/t13/t13.rb')
-rwxr-xr-xqtruby/rubylib/tutorial/t13/t13.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/qtruby/rubylib/tutorial/t13/t13.rb b/qtruby/rubylib/tutorial/t13/t13.rb
new file mode 100755
index 00000000..817dfe70
--- /dev/null
+++ b/qtruby/rubylib/tutorial/t13/t13.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