Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Perltk and TopLevel

by meraxes (Friar)
on May 21, 2002 at 15:28 UTC ( [id://168159]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://168159]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-03-19 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found