[sugar] Using threads in an Activity
Tomeu Vizoso
tomeu
Sun Jul 20 06:43:07 EDT 2008
On Sun, Jul 20, 2008 at 4:26 AM, Shikhar <shikhar at schmizz.net> wrote:
> Hi,
>
> I am trying to use threads in my activity. However, the UI locks up
> while the thread runs. Actually, it is somewhat strange what happens:
> the thread is already initialized and running, waiting on a Queue for a
> work request. After I make a request, this is when the UI locks up
> (although the request completes)
>
> I have tried both gtk.gdk.threads_init() and gobject.threads_init() in
> my activity initialization before I call super
I think you need to do it earlier, in the module scope.
HTH,
Tomeu
More information about the Sugar-devel
mailing list