You could also use the afterIdle method. This allows a callback function to be executed when Tk enters the idle loop. However, if a user grabs a scroll bar with the mouse and honks it up and down, it's unlikely that you'll get into the idle loop.
You could also combine this with after, which allows a callback function to be invoked 'n' milliseconds later. Just set 'n' to a low number, so your callback function gets executed often.
--ChrisIn reply to (jcwren) Re: Perl/Tk Non-user Interactivity
by jcwren
in thread Perl/Tk Non-user Interactivity
by Daimun
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |