in reply to Re^4: PerlTk Busy vs. update
in thread PerlTk Busy vs. update

Is that with $top->update or $label->update?

Contrary to the assertion that any update is global, the 2nd run of my test script shows that with Busy(-recurse=>1) and $label->update, the $button event was discarded. (On the Win98 and W2K boxen here, anyway.)

Update: I'd changed two things at once while testing - the recurse option was solely responsible for causing the events to be discarded. Update is global.

Also, idletasks is slightly different between the Win* and Linux boxen I use. On the Linux boxen there are no "leftover" characters after idletasks causes the label change to display.

Replies are listed 'Best First'.
Re^6: PerlTk Busy vs. update
by eserte (Deacon) on Jul 02, 2004 at 18:12 UTC
    update() is global. I would be happy if this wouldn't be the case. There's no difference between $mw->update and $label->update.
Re^6: PerlTk Busy vs. update
by Anonymous Monk on Jul 02, 2004 at 18:06 UTC
    I was using $top->Busy(-recurse=>1) and $label->update() (on a Sun box). I've gone over to using $label->idletasks() and this seems to work.