Re: Best way to busy-wait in Python 3 / Gtk+ 3?
- From: Filip Lamparski <matka poohatka gmail com>
- To: jcupitt gmail com
- Cc: GTK+ App Development List <gtk-app-devel-list gnome org>
- Subject: Re: Best way to busy-wait in Python 3 / Gtk+ 3?
- Date: Sun, 7 Oct 2012 12:34:37 +0100
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, <jcupitt 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 <https://www.facebook.com/filip.lamparski> -
G+<https://plus.google.com/105688569486178456264/posts>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]