Re: [sugar] Notify active event firing

2007-11-03 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arjun Sarwal wrote: > I need to turn off some drawing code when the user switches to Home View > (why waste so much of CPU power in the meanwhile) > How can I do that ? I just figured this out while writing Clock. In my activity's __init__, I do:

Re: [sugar] Notify active event firing

2007-11-03 Thread Arjun Sarwal
Thanks, Tomeu. I need to turn off some drawing code when the user switches to Home View (why waste so much of CPU power in the meanwhile) How can I do that ? thanks, Arjun On 10/30/07, Tomeu Vizoso <[EMAIL PROTECTED]> wrote: > > Hi Arjun, > > On Tue, 2007-10-30 at 02:15 +0530, Arjun Sarwal wrote

Re: [sugar] Bitfrost compliance for Update.1

2007-11-03 Thread Ivan Krstić
On Nov 3, 2007, at 11:30 AM, Benjamin M. Schwartz wrote: > Sugar should set this variable to the preferred temporary > directory, so that the above boilerplate is unnecessary. Yes, I'm planning on Sugar doing this and providing getters for the data and conf directories. We wanted to get the com

[sugar] OLPC News 2007-11-03

2007-11-03 Thread Walter Bender
1. Reggio Emilia: Italian Prime Minister Romano Prodi reconfirmed his commitment of 50,000 laptops for Ethiopia while at a town meeting of over 600 people where Nicholas presented OLPC. The importance of the funding is its exemplary nature—it is model for other European countries and the EU itself

Re: [sugar] Bitfrost compliance for Update.1

2007-11-03 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ivan Krstić wrote: > Here's how to properly get a temporary file in Python until we > provide helpers for it through Sugar: ... > tmp_root = os.path.join(environ['SUGAR_ACTIVITY_ROOT'], 'tmp') > tmp = tempfile.TemporaryFile(dir=tmp_root) According t