Tomeu and Gary,

Thanks for your advice and interest.

I've attached my complete activity (OurMusic) in the form of an .xo archive.

Note that it requires csndsugui.py (included), Victor Lazzarini's "Csound GUI toolkit." It's barely possible that the color issue lies therein (but unlikely).

The background color issue is the only issue when the activity is run on OLPC; on SoaS, there is another as well: an "unavailable" csnd or _csnd module (from python 2.6). For the latter issue, Aleksey suggested a Scons-related fix (that I've yet to be able to implement, unfortunately, as my technical expertise is *highly* limited).

If you manage to get an initial display on a white background, I'd be most grateful.

If you do have/get a display, probably options 2 and 4 will work for you; they use only the ASCII keyboard, no MIDI controllers (unlike 1 and 3). I'd be delighted if these worked on SoaS.

Gary, I'll be trying your code as well. I presume it should go near the beginning in my main loop? (Sorry, my grasp of both python and GTK -- OOP for that matter -- is so minimal.)

Art Hunkins

----- Original Message ----- From: "Tomeu Vizoso" <to...@sugarlabs.org>
To: "Art Hunkins" <abhun...@uncg.edu>
Cc: <sugar-devel@lists.sugarlabs.org>
Sent: Tuesday, July 07, 2009 4:55 AM
Subject: Re: [Sugar-devel] Background Screen Color for SoaS Activity


On Tue, Jul 7, 2009 at 04:46, Art Hunkins<abhun...@uncg.edu> wrote:
Tomeu,

I've had no luck modifying background color for anything except buttons.

No boxes, even when the box is completely empty.

Does anyone know how to change the color of the entire screen, or of a box?

I have done it routinely, can you share the whole code of your activity class?

Regards,

Tomeu

Art Hunkins

----- Original Message ----- From: "Tomeu Vizoso" <to...@sugarlabs.org>
To: "Art Hunkins" <abhun...@uncg.edu>
Cc: <sugar-devel@lists.sugarlabs.org>
Sent: Monday, July 06, 2009 4:26 AM
Subject: Re: [Sugar-devel] Background Screen Color for SoaS Activity


On Mon, Jul 6, 2009 at 06:19, Art Hunkins<abhun...@uncg.edu> wrote:

The default color for the Sugar Activity screen seems to be set to light
gray. I'd like mine to be white.

Is there any way to change this in my activity script?

That looks good to me, perhaps ibox contains some other widget that is
covering it completely?

Regards,

Tomeu

I tried:

import gtk

win = csndsugui.CsoundGUI(self)
ibox = win.box(False)
ibox.modify_bg(gtk.STATE_NORMAL, gtk.gdk.Color(0xFFFF, 0xFFFF, 0xFFFF))

where ibox = the entire screen.

However this changed nothing.

Anything fairly straightforward I could try?

Art Hunkins

_______________________________________________
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Attachment: OurMusic-1.xo
Description: Binary data

_______________________________________________
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel

Reply via email to