gammaman has asked for the wisdom of the Perl Monks concerning the following question:
sub die{ local $boom = MainWindow->new( -background=>'green'); my $label = $boom->Label(); my $yes = $boom->Button(); my $no = $boom->Button(); $label->configure(-text=>'DO you really want to quit?'); $yes->configure(-text=>'Yes',-command=>\&des); $no->configure(-text=>'NO', -command=>\&goback); $label->pack(); $yes->pack(); $no->pack(); } sub goback{ $boom->packForget(); } sub des{ $boom->packForget(); }
Edit: g0n - code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help using packForget()
by akho (Hermit) on Apr 28, 2007 at 14:00 UTC | |
|
Re: help using packForget()
by f00li5h (Chaplain) on Apr 28, 2007 at 14:01 UTC | |
by jonadab (Parson) on Apr 28, 2007 at 15:36 UTC | |
|
Re: help using packForget()
by zentara (Cardinal) on Apr 28, 2007 at 15:51 UTC | |
|
Re: help using packForget()
by zentara (Cardinal) on Apr 28, 2007 at 15:31 UTC | |
|
Re: help using packForget()
by akho (Hermit) on Apr 28, 2007 at 14:55 UTC |