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); }
In reply to Re: Why not replace MainLoop?
by Anonymous Monk
in thread Give me my gui back!
by Bagarre
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |