Apropos of creating and deleting Tk windows, I wonder about the main program that calls your "guiStart" sub. Does this sub get called numerous times during the execution of the main script? Or is it rather the case that the main script does some stuff, calls this sub, does a few other things after the gui shuts down, then exits?
If this gui comes up numerous times (for that matter, if the dialog box comes up numerous times), you might consider restructuring the app so that the windows/widgets are all created just once, then made to appear, disappear and reappear as needed, without destroying and recreating them.
Creating and destroying widgets involves a lot of extra work; it might not be a problem now, but if you have a larger app with more widgets or more data being displayed in widgets, it can slow things down noticeably. Meanwhile, reconfiguring widgets to be visible or not visible, or changing the data that they display, is relatively fast.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.