summaryrefslogtreecommitdiffstats
path: root/PerlTQt/tutorials/t3/t3.pl
blob: 24fcdf0473f6d667a65d96aa2dafc16ccbbea125 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl -w
use strict;
use blib;
use TQt;

my $a = TQt::Application(\@ARGV);

my $box = TQt::VBox;
$box->resize(200, 120);

my $quit = TQt::PushButton("Quit", $box);
$quit->setFont(TQt::Font("Times", 18, &TQt::Font::Bold));

$a->connect($quit, TQT_SIGNAL('clicked()'), TQT_SLOT('quit()'));

$a->setMainWidget($box);
$box->show;

exit $a->exec;