I would like to use a status label to inform the user what's going on while my application is churning away on a long computation. So I have a little subroutine that I call every so often during the computation that updates the -textvariable associated with the label and calls $main->update() to actually update what's being displayed on the label.

The problem I'm having is that calling this update() seems to defeat the $main->Busy() I'm using to prevent the user from being able to take any actions while the calculation is running, so that the user may inadvertently interrupt the calculation before it's finished.

Is there a way to update my status label without allowing any events that may come in during the update to sneak around the grab that the Busy is supposed to be doing? Or am I just confused?


In reply to PerlTk Busy vs. update by Anonymous Monk

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.