Keep It Simple, Stupid | |
PerlMonks |
Re: perl tk mainwindow hangsby mtmcc (Hermit) |
on Sep 23, 2013 at 14:46 UTC ( [id://1055301]=note: print w/replies, xml ) | Need Help?? |
perl Tk runs in a single thread, so if you process a lot of information in a subroutine, the GUI will seem frozen until the subroutine passes back to Mainloop.
One way around this is with threads. Although Tk itself isn't thread-safe, there are ways to do it. Have a look at this, for example: Perl/Tk threading and/or cron job? I hope that helps!
In Section
Seekers of Perl Wisdom
|
|