in reply to Re: error:not a Tk object error, please help.
in thread error:not a Tk object error, please help.

1. Tk::Error: Undefined subroutine &main::do_Toplevel called

2. You essentially wrote

if ( !Exists( $t1 ) ) { $t1 = $mw->Toplevel(); sub { # bunch of code that can never get called } }

Replies are listed 'Best First'.
Re^3: error:not a Tk object error, please help.
by Khen1950fx (Canon) on May 19, 2008 at 09:22 UTC
    I didn't write that. I just had a gut feeling that OnDestroy was causing the problem, so I was focused on that. Otherwise, I agree with you.
      Deleting code to remove the error generated by it can't be a solution.