in reply to How to get rid of a TopLevel window

Change $top_frame->destroy; to $toplevel->destroy; and it will work. You see you are destroying the frame in the new TopLevel window but not the new TopLevel window itself.

Update: BlueBlazerRegular beat me to it... That's what I get for trying an example out before posting it. ;)

Replies are listed 'Best First'.
Re: Re: How to get rid of a TopLevel window
by BlueBlazerRegular (Friar) on Sep 11, 2002 at 16:25 UTC
    Well, I had the advantage of having my code up in VIM already, so I just had to do /destroy to make sure I had things right.

    As past experience has taught, the one time you don't look something up is the time you'll get it wrong.

    Pat