Re: [sugar] Using threads in an Activity

2008-07-20 Thread Tomeu Vizoso
On Sun, Jul 20, 2008 at 4:26 AM, Shikhar [EMAIL PROTECTED] 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

Re: [sugar] Using threads in an Activity

2008-07-20 Thread Erik Blankinship
Here is some code which runs multiple threads successfully on an xo. Look for ServerThread: http://mediamods.com/public-svn/map-activity/Map.activity/map.py On Sat, Jul 19, 2008 at 10:26 PM, Shikhar [EMAIL PROTECTED] wrote: Hi, I am trying to use threads in my activity. However, the UI

Re: [sugar] Using threads in an Activity

2008-07-20 Thread Hemant Goyal
Hi Shikar, You might want to look at how James Simmons uses threads in his ReadEtexts Activity to do speech synthesis using a thread too.. http://dev.laptop.org/git?p=activities/readetexts;a=blob;f=ReadEtextsActivity.py;h=c8c7086a4dd9448a2f81b96150dcb551c6d5d217;hb=HEAD Around line 56 or so...

Re: [sugar] Using threads in an Activity

2008-07-20 Thread Shikhar
Thank you for all the replies, I fixed the problem by simplifying things a little, the code examples helped :-) ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar

[sugar] Using threads in an Activity

2008-07-19 Thread Shikhar
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

Re: [sugar] Using threads in an Activity

2008-07-19 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shikhar wrote: | What am I missing? Where's the code? The Distance activity uses threads, gtk, and dbus without any problem, so that may be a good reference code. - --Ben -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) Comment: