[Sugar-devel] Is there a way to purposefully do synchronous GUI updates?

Ajay Garg ajay at activitycentral.com
Wed Aug 22 14:32:14 EDT 2012


James, Benjamin,

I replaced the gtk.ProgressBar with a running-progress-text.

It works, provided I use the Benjamin's method of using
"gtk.gsk.window_process_all_updates()" to have "synchronous" GUI updates.


Thanks and Regards,
Ajay


On Wed, Aug 22, 2012 at 5:55 AM, James Cameron <quozl at laptop.org> wrote:

> On Tue, Aug 21, 2012 at 03:44:13PM +0530, Ajay Garg wrote:
> > I am using this to show the upload-progress of a 4 GB file, using
> > gtk.ProgressBar().
>
> Is your upload socket registered with the main event loop as an event
> source?
>
> > The file takes about 15 minutes to upload, and I only see the
> > progress bar (fraction = 1) right at the end; which means that only
> > after the uploading is done, and there is nothing else to be done,
> > does the GUI update takes place.
>
> This is wrong, and it need not be this way.
>
> --
> James Cameron
> http://quozl.linux.org.au/
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120823/29501c2c/attachment.html>


More information about the Sugar-devel mailing list