summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/examples/qt-examples/aclock/main.rb
blob: dadbee15b9752a9c18676a6ff0089c54e4e97840 (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 = Qt::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