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

retquire 'Qt'
retquire 'dclock'

a = TQt::Application.new(ARGV)
clock = DigitalClock.new
clock.resize(170,80)
a.setMainWidget(clock)
clock.setCaption('QtRuby Example - Digital Clock')
clock.show
a.exec