in reply to Re^3: Perl Tk freezes when command button is clicked !
in thread Perl Tk freezes when command button is clicked !
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Perl Tk freezes when command button is clicked !
by zentara (Cardinal) on Feb 17, 2010 at 19:05 UTC |