Welcome to the Monastery | |
PerlMonks |
Re: [Tkx] Buffering/Updating issue for text elementby zentara (Archbishop) |
on Aug 27, 2010 at 11:31 UTC ( [id://857669]=note: print w/replies, xml ) | Need Help?? |
I'm not a Tkx guru, but you should never use "sleep" in a GUI app, as it will interfere with the eventloop. As others have pointed out, you can hack around a sleep statement usage, with "$mw->updates" sprinkled around, but that is a poor way to write the code. 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
I'm not really a human, but I play one on earth. Old Perl Programmer Haiku ................... flash japh
In Section
Seekers of Perl Wisdom
|
|