Contrib/book-examples/f-16.9.pl
raw| 1 | #!/usr/local/bin/perl -w |
| 2 | |
| 3 | # |
| 4 | # Figure 16.8, p166 |
| 5 | # |
| 6 | |
| 7 | |
| 8 | use Tk; |
| 9 | |
| 10 | my $mw = MainWindow->new; |
| 11 | my $msg = $mw->Message ( |
| 12 | -width => '8c', -justify => 'left', |
| 13 | -relief => 'raised', -bd => 2, |
| 14 | -font => '-Adobe-Helvetica-Bold-R-Normal--*-180-*-*-*-*-*-*', |
| 15 | -text => 'You have made changes to this document since the last time it was saved. Is it OK to discard the changes?', |
| 16 | ); |
| 17 | $msg->pack; |
| 18 | |
| 19 | MainLoop; |