nop has asked for the wisdom of the Perl Monks concerning the following question:
how do I ensure the focus stays on the primary window ( $win), and the new window ($win2) shows up below the primary?$win->bind('<Return>' => sub { my $win2 = $win->Toplevel; my $image = $win2->Photo; $image->configure(-file=>&nowpic); $win2->Label(-image=>$image)->pack; $win2->title(&nowpic); } );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: window focus and stacking in TK
by alien_life_form (Pilgrim) on Nov 07, 2001 at 19:11 UTC | |
|
Re: window focus and stacking in TK
by kevin_i_orourke (Friar) on Nov 07, 2001 at 16:36 UTC |