You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
317 B
14 lines
317 B
13 years ago
|
#!/usr/bin/perl -w
|
||
|
use strict;
|
||
13 years ago
|
use TQt;
|
||
13 years ago
|
use AnalogClock;
|
||
|
|
||
13 years ago
|
my $a = TQt::Application(\@ARGV);
|
||
13 years ago
|
my $clock = AnalogClock;
|
||
|
$clock->setAutoMask(1) if @ARGV and $ARGV[0] eq '-transparent';
|
||
|
$clock->resize(100, 100);
|
||
|
$a->setMainWidget($clock);
|
||
13 years ago
|
$clock->setCaption("PerlTQt example - Analog Clock");
|
||
13 years ago
|
$clock->show;
|
||
|
exit $a->exec;
|