in reply to Problems with Tk freezing

If you use a pattern like Language::Logo where the graphic portion is a separate thread, then you could handle the bots in one thread and the display in a separate thread. Then your bots could update at a rate that is not linked to your display refresh. I don't know how to do this ;) but it would be cool if someone built a module that would allow this kind of disassociation between a Tk window and long running processes


___________
Eric Hodges

Replies are listed 'Best First'.
Re^2: Problems with Tk freezing
by rinceWind (Monsignor) on Feb 06, 2007 at 16:37 UTC

    Fork a process with a piped open, open2 or open3 (to do the bot stuff), then use Tk::fileevent.

    --

    Oh Lord, won’t you burn me a Knoppix CD ?
    My friends all rate Windows, I must disagree.
    Your powers of persuasion will set them all free,
    So oh Lord, won’t you burn me a Knoppix CD ?
    (Missquoting Janis Joplin)