henry888 has asked for the wisdom of the Perl Monks concerning the following question:
=========== use Tk; use strict; my $mw = MainWindow->new; my $button1= $mw-> Button(-text=>"newWin", -command=> sub { my $top2 = $mw -> Toplevel(); my $label1= $top2-> Label(-text=>'hi here')->pack(); } )->pack; MainLoop; ================
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to prevent more than 1 tk Toplevel windows from opening
by zentara (Cardinal) on May 17, 2008 at 17:18 UTC | |
by henry888 (Initiate) on May 17, 2008 at 18:26 UTC | |
by henry888 (Initiate) on May 18, 2008 at 00:52 UTC | |
by zentara (Cardinal) on May 18, 2008 at 14:11 UTC |