In building my application under Perl/Tk, I need to build up some menus from servers and database accesses. This all functions well, but there is an interval between starting the gui, and the screen being populated with widgets (main window, menus, etc). While this is happening the present solution is to do "print"s which go to standard out that explain the happenings. After all the menus and stuff are built, I call "MainLoop" and I have a gui. What I'd like to do is have a nice scrolling status window that reflects the writings to stdout (I'll change the print(s) as needed) to a nice window that is seperately displayed. Is there any way I can display a window (or anything for that matter) OUTSIDE of the 'MainLoop' procedure? The references are a bit vague on this. I suspect I'll need something like a TopLevel widgit or something, but I'm a bit unsure.

p.s. I got the browser select goodie working! Thanks.


In reply to Perl/Tk windows and status by herby1620

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.