Bloodelf has asked for the wisdom of the Perl Monks concerning the following question:
The problem is that the find command takes several seconds, and the neither the label or the cursor will update until the sub returns. This gives the user the impression that the script has frozen. Is there any way around this??sub update {$main->configure(-cursor=>"watch"); $textbox->configure(-text =>"Updating Something...") find(\&check_file,$path); $main->configure(-cursor=>"arrow"); $textbox->configure(-text =>"Status normal.");}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk sub calling problem
by {NULE} (Hermit) on Dec 09, 2001 at 04:43 UTC | |
by clintp (Curate) on Dec 09, 2001 at 23:13 UTC | |
by Bloodelf (Beadle) on Dec 09, 2001 at 04:47 UTC | |
by sparkyichi (Deacon) on Dec 09, 2001 at 04:49 UTC | |
|
(ichimunki) Re: Tk sub calling problem
by ichimunki (Priest) on Dec 09, 2001 at 23:54 UTC |