Debian Codegraph @

Contrib/book-examples/f-15.5.pl

raw
1 #!/usr/local/bin/perl -w
2
3 #
4 # Figure 15.5, p153
5 #
6
7 use Tk;
8
9 my $mw = MainWindow->new;
10 my $top = $mw->Button(-text => 'Top button');
11 $top->pack;
12 my $bottom = $mw->Button(-text => 'Bottom button');
13 $bottom->pack;
14
15 MainLoop;
16
17