softworkz has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl-w use strict; use Tk; my $mw = MainWindow -> new; $mw -> title("my tk example"); my %nl = (); # newline $mw ->Label(%nl)->pack; my %nl = (); # newline $mw ->Label(%nl)->pack; my %nl = (); # newline $mw ->Label(%nl)->pack; my %text = ('-text',"Reminder, Don't forget to use strict!"); $mw ->Label(%text)->pack; # -ipadx = width # -ipady = height my $dialog_box = $mw -> Label()-> pack(-side => 'top', -ipadx => '120' +, -ipady => '25'); $mw -> Button(-text => "Close ", -command => sub { &exit })-> pack (-s +ide => 'bottom'); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: tk example
by dga (Hermit) on Aug 30, 2001 at 19:08 UTC | |
by Hofmator (Curate) on Aug 30, 2001 at 19:17 UTC | |
by softworkz (Monk) on Aug 30, 2001 at 19:49 UTC |