summaryrefslogtreecommitdiffstats
path: root/PerlQt/examples/aclock/aclock.pl
blob: b4ae65966a75fe58fe24553e1f6a02bd4647c5be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl -w
use strict;
use TQt;
use AnalogClock;

my $a = TQt::Application(\@ARGV);
my $clock = AnalogClock;
$clock->setAutoMask(1) if @ARGV and $ARGV[0] eq '-transparent';
$clock->resize(100, 100);
$a->setMainWidget($clock);
$clock->setCaption("PerlTQt example - Analog Clock");
$clock->show;
exit $a->exec;