in reply to Re: Perltk and TopLevel
in thread Perltk and TopLevel

I've tried changing the "require" line as you specified but now I get an extra line in the error codes:

Assuming 'require Tk::TopLevel;' at D:\Work\test2.pl line 21

And still no window. :(

Replies are listed 'Best First'.
Re: Re: Re: Perltk and TopLevel
by bmcatt (Friar) on May 21, 2002 at 16:31 UTC
    You need to also change the line where you create the new top-level window.

    $TestWindow = $main->Toplevel();

    It's not just the require that needs to change... The /m on ariels' substitution indicated that you needed to change TopLevel->Toplevel everywhere...

      I'm a colossal moron. Thanks for you patience. That did the trick. Can't believe I fell for the case-sensitive problem. I'll be more careful next time.