As an alternative to using threads, it is also possible to unblock the event loop by manually calling $mw->update() at frequent intervals to alllow the GUI to update, respond etc. This may or may not be easier/better for you, depending on what you are trying to do. I think it doesn't matter what Tk object you call the update() method on, although I usually use the main window.
--
"Any sufficiently analyzed magic is indistinguishable from science" - Agatha Heterodyne
In reply to Re^4: Perl Tk freezes when command button is clicked !
by mykl
in thread Perl Tk freezes when command button is clicked !
by muralidharan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |