Debian Codegraph @

Contrib/book-examples/f-16.7.pl

raw
1 #!/usr/local/bin/perl -w
2
3 #
4 # Figure 16.7, p166
5 #
6
7 # not -w clean (how to do ?)
8
9 use Tk;
10
11 my $mw = MainWindow->new;
12 my $bold = $mw->Checkbutton(-text => 'Bold',
13 -variable => $bold,
14 -anchor => 'w',
15 );
16 my $italic = $mw->Checkbutton(-text => 'Italic',
17 -variable => $italic,
18 -anchor => 'w',
19 );
20 my $underline = $mw->Checkbutton(-text => 'Underline',
21 -variable => $underline,
22 -anchor => 'w',
23 );
24 $bold->pack(-side => 'top', -fill => 'x');
25 $italic->pack(-side => 'top', -fill => 'x');
26 $underline->pack(-side => 'top', -fill => 'x');
27
28 MainLoop;