13 Jul 18:06
Re: refreshing gtk.IconView
From: Frédéric <frederic.mantegazza <at> gbiloba.org>
Subject: Re: refreshing gtk.IconView
Newsgroups: gmane.comp.gnome.gtk+.python
Date: 2008-07-13 16:06:32 GMT
Subject: Re: refreshing gtk.IconView
Newsgroups: gmane.comp.gnome.gtk+.python
Date: 2008-07-13 16:06:32 GMT
On dimanche 13 juillet 2008, spooky.ln <at> tbs-software.com wrote: > im trying write simple app for viewing my photo collection. > and now i have little problem. I want update IconView after > every > single loaded photo and not update after all photos loaded. I think you have to launch a thread which will parse your photos, and update the GUI. You will have to take care about asynchronous refresh from that thread: you can't just call gtk methods from it. The solution is to create a queue, where threads put commands, and have this queue read by the main thread (using timeout_add). I can send you such 'serializer' if you want... -- -- Frédéric http://www.gbiloba.org _______________________________________________ pygtk mailing list pygtk <at> daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
RSS Feed