Re: GUI freeze and long blocking operation



On Wed, 2013-06-12 at 09:50 +0100, jcupitt gmail com wrote:
Do you need to use idle_add()?

Hey John,

If I start the long job function from within my assistant's "prepare"
signal callback, as opposed to en-queueing it there via idle_add(), then
the GUI doesn't refresh throughout the duration of the long job. This
happens even though I do pump the message queue during the long job via
the usual...

        while Gtk.events_pending():
                Gtk.main_iteration()

Thanks a lot for your help.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


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