in reply to Give me my gui back!
If iterate() is particularly long, you still need to spice with the occasional DoOneEvent (I did anyway). The inspiration for this came out of some of the sample code. -- Fred m3047 Morriswhile (1) { if ($Quit) { $MW->destroy; last; } DoOneEvent($Running ? Tk::DONT_WAIT : Tk::ALL_EVENTS); iterate() if ($Running); save_is_active( 1 ) if (!$Running && !$SaveButtonActive); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Yet another good idea.
by Bagarre (Sexton) on Nov 19, 2003 at 13:47 UTC |