Sorry I missed the process bit. To have the load in another process, use a pipe to send worker results back to the main process, and add the pipe to your gtk main loop as an event source.
You obviously can't use any gtk/glib stuff in your worker, you'd need to just make a .jpg, then do all the widget stuff in the main process, On 7 October 2012 12:34, Filip Lamparski <matka.pooha...@gmail.com> wrote: > I specifically want to avoid using GLib's threading machinery in order to > use multiprocessing, since later I want to add multithreading to the > thumbnail loading process itself in order to utilise multiple cores more > efficiently. That is because at first run, I have to download 128 images, > and the server tends to take its sweet time. > > On 7 October 2012 10:23, <jcup...@gmail.com> wrote: >> >> Sorry, I don't use Python much, but in C you'd start a thread to do >> the load and then have that call g_idle_add() when it finished. >> Meanwhile the main thread stays just handling inputs and repaints, but >> you display some sort of busy indicator until the idle callback fires. >> >> John > > > > > -- > _____________________ > Filip Lamparski - FB - G+ > _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list