Re: blocking code after main loop




Michael Hartmann wrote:
Why is the gui still available when perl runs sleep?
And related to this question: How can I avoid this problem?

It sounds like the main loop exits before handling all of the events involved
in the destruction of the window.

Try adding a "Gtk2->main_iteration while Gtk2->events_pending;" before the sleep.


-- 
muppet <scott at asofyet dot org>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]