Am Freitag, 21. Februar 2003 00:10 schrieb John Hunter:
> I have a long, computationally intensive task that I want to use a
> progress bar for.
>
> My problem is that the progress bar is only displaying at the end of
> the computation, even though the function updating the progress bar is
> being called during the long computation
[snip]
>         while gtk.events_pending():
>             gtk.mainiteration()
>
> but am not sure if this is relevant here.
Yes it is.
The updating alone is not enough as GTK queues this requests till it's idle 
for a moment. So you have to process this requests to create the desired 
effect.

This idiom is actually relevant to most GUI toolkits.

Andreas
-- 
Andreas Kostyrka
Josef-Mayer-Strasse 5
83043 Bad Aibling
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to