use Tk; choice(); # After the widget vanishes # the program continues here ... print "Success!!\n"; sub choice{ $top = MainWindow -> new(); $frame = $top -> Frame() -> pack(); $button = $frame->Button (-text => 'Kill', -command => sub{$top -> destroy()} )->pack(); MainLoop; }
In reply to Re: Re: OO novice with Perl/Tk
by Merrick
in thread OO novice with Perl/Tk
by Merrick
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |