summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/examples/qt-examples/aclock/main.rb
blob: 030fe15fa5f7e2a58b11a3cc15de9c091773ca32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env ruby

require 'Qt'
require 'aclock'

a = TQt::Application.new(ARGV)
clock = AnalogClock.new
ARGV.each {|arg|
	clock.setAutoMask(true) if arg == '-transparent'
}
clock.resize(100, 100)
a.setMainWidget(clock)
clock.setCaption('QtRuby example - Analog Clock')
clock.show
a.exec