in reply to Is there a way to free the Tk MainLoop without getting into parallel programming?
If the computation is CPU-bound, then you're pretty much required to offload it to another CPU core to keep the Tk MainLoop responsive. You can use threads, forking, or a separate computation server to offload the work from the CPU running Tk's MainLoop.
You can also use $widget->update() to periodically update the status widget, if you don't mind Tk being less responsive during the computation. See the documentation for Tk::Widget for more information.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is there a way to free the Tk MainLoop without getting into parallel programming?
by Takuan Soho (Acolyte) on Jul 22, 2009 at 14:04 UTC | |
by rcaputo (Chaplain) on Jul 22, 2009 at 17:15 UTC |