presto change-o! $mw is destroyed and ex2's window is created.-command => [ sub { $mw->destroy(); ex2();} ],
With the current code, ex2() doesn't exit until its MainLoop is finished, so the second command (to destroy $mw) isn't executed until after ex2()'s window is closed.
In reply to Re: window destroying
by moot
in thread window destroying
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |