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? 

-- 
Don Allingham
[EMAIL PROTECTED]
http://gramps.sourceforge.net


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to