in reply to [Tkx] Buffering/Updating issue for text element
Almost always, you avoid the problem by setting up a timer, rather than use sleep. Try taking the sleep(1) out of your code, and see if that speeds up the text inserts. A timer in Tkx would look something like the following.
See Tkx repeat in case you are forced to use after to simulate repeat. I don't know if Tkx has a repeat
# untested pseudocode sub start{ my @ids = (1..10); # repeat may not be available in Tkx.... see link above Tkx::repeat(1000, sub { my $id = shift @ids; if ($id <= 10){ $txt_processed_domains->configure(-state => "normal"); $txt_processed_domains->insert_end( "$id => Available\n" ); $txt_processed_domains->configure(-state => "disabled"); } else { Tkx::tk___messageBox( -message => "Completed!" ); } }); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: [Tkx] Buffering/Updating issue for text element
by Gangabass (Vicar) on Aug 28, 2010 at 00:19 UTC | |
by zentara (Cardinal) on Aug 28, 2010 at 11:46 UTC | |
by Anonymous Monk on Aug 28, 2010 at 11:52 UTC | |
by zentara (Cardinal) on Aug 28, 2010 at 12:08 UTC |