Either take the gtk lock in your idle handler or disable threads using
the snapshot of stable pygtk and using gtk._disable_threading() before
you call the mainloop for the first time.

Cheers,

Matt

On Wed, Dec 26, 2001 at 10:15:20AM -0700, Don Allingham wrote:
> I've tried adding a "autosave" backup option to my program by using
> gtk.timeout_add(). When the timer expires, I jump to my "save" routine
> and the file is save. However, during that time, the screen is not
> updated, and the program seems to hang until the save is done. Since the
> save process can be long at times, I would like to have the screen
> update so I can give some type of progress indicator.
> 
> I've put:
> 
>   while gtk.events_pending():
>       gtk.mainiteration()
> 
> In the callback, but that updates the screen until the timer-called
> routine completes, and then the entire application freezes.
> 
> Any ideas on how do fix this? 
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to