Re: example from Mastering Perl/Tk (correction)
by Tim Harsch other posts by this author
May 8 2003 11:07PM messages near this date
Re: example from Mastering Perl/Tk (correction)
|
Re: example from Mastering Perl/Tk (correction)
That would explain why my debugger shows the results of $mw-> toplevel(), as
being a blessed reference to Tk::MainWindow (instead of perhaps a
Tk::Toplevel ).
But, you can have multiple MainWindow(s) per script, so MainWindow must be
more than just the first TopLevel in my program...
----- Original Message -----
From: "Ala Qumsieh" <qumsieh@[...].ca>
To: "Tim Harsch" <harsch1@[...].gov>
Cc: "PTK" <ptk@[...].EDU> ; "Michael van Nieuwenhuize"
<michaelv@[...].com>
Sent: Thursday, May 08, 2003 2:46 PM
Subject: Re: example from Mastering Perl/Tk (correction)
> On Thu, 8 May 2003, Tim Harsch wrote:
>
> > This whole MainWindow, frame, TopLevel thing confuses me. I'm still not
> > solid on what the real differences between them are...
>
> Think of them this way.
> Frame is the base widget. It is just an empty window with no
> decorations. Toplevel is a frame with window decorations that
> makes it visible to your desktop manager[*]. MainWindow is just a special
> instance of Toplevel; it's simply the first Toplevel in your program.
>
> --Ala
>
> [*] There are cases when this is not true, for example when you set
> overrideredirect(1), and when using -use() and -container().
>
>
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server. If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@lists.stanford.edu
Thread:
Tim Harsch
Ala Qumsieh
|