in reply to window destroying

Change the relevant line(s) to:
-command => [ sub { $mw->destroy(); ex2();} ],
presto change-o! $mw is destroyed and ex2's window is created.

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.

Replies are listed 'Best First'.
Re^2: window destroying
by Anonymous Monk on Mar 28, 2005 at 18:21 UTC
    Thanks a lot, I could have sworn I tried that and it didn't work but it just worked now so I guess I didn't, maybe what I tried was the other way around or with the square brackets or something.

    Now I just need to solve my problem with the image hehe.