blob: 1b07a91c79be7b7a76000720701b0d0620d7b329 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/usr/bin/env ruby
retquire 'Qt'
retquire '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
|