Csound Csound-dev Csound-tekno Search About

[Cs-dev] Final csndsugui question

Date2009-06-15 21:52
From"Art Hunkins"
Subject[Cs-dev] Final csndsugui question
Victor (and Andres?) -

I am trying to control the background (bg) color of my Activity display 
(OLPC). Regardless of what I set it to in:
   win = csndsugui.CsoundGUI(self, bg)
the colour turns out medium gray.

Victor, it does so on all four of your Activities as well.

The gray covers all the screen except for portions of the widgets.

What happens is that the specified background color appears over most of the 
screen for an instant, then is covered by gray at the same moment that the 
top Sugar bar is being drawn/filled.

I assume that perhaps this is being done, then by Sugar when entering the 
main loop?

I really would like to have my background white, if reasonably possible.

The phenomenon occurs even when the entire script is as follows (in which 
case a blank gray screen appears with the Sugar bar at top:
_______________________________________
import csndsugui
from sugar.activity import activity

class OurMusic(activity.Activity):

 def __init__(self, handle):

   activity.Activity.__init__(self, handle)

   red = (0xFFFF, 0, 0)
   bg = (0xFFFF, 0xFFFF, 0xFFFF)

   win = csndsugui.CsoundGUI(self, bg)
_______________________________________
I'd appreciate any insight and options you could offer.

TIA -

Art Hunkins 


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-06-15 23:30
Fromvictor
SubjectRe: [Cs-dev] Final csndsugui question
I think this is set by sugar. Not sure whether the activity
can change this.

Victor
----- Original Message ----- 
From: "Art Hunkins" 
To: 
Sent: Monday, June 15, 2009 9:52 PM
Subject: [Cs-dev] Final csndsugui question


> Victor (and Andres?) -
>
> I am trying to control the background (bg) color of my Activity display
> (OLPC). Regardless of what I set it to in:
>   win = csndsugui.CsoundGUI(self, bg)
> the colour turns out medium gray.
>
> Victor, it does so on all four of your Activities as well.
>
> The gray covers all the screen except for portions of the widgets.
>
> What happens is that the specified background color appears over most of 
> the
> screen for an instant, then is covered by gray at the same moment that the
> top Sugar bar is being drawn/filled.
>
> I assume that perhaps this is being done, then by Sugar when entering the
> main loop?
>
> I really would like to have my background white, if reasonably possible.
>
> The phenomenon occurs even when the entire script is as follows (in which
> case a blank gray screen appears with the Sugar bar at top:
> _______________________________________
> import csndsugui
> from sugar.activity import activity
>
> class OurMusic(activity.Activity):
>
> def __init__(self, handle):
>
>   activity.Activity.__init__(self, handle)
>
>   red = (0xFFFF, 0, 0)
>   bg = (0xFFFF, 0xFFFF, 0xFFFF)
>
>   win = csndsugui.CsoundGUI(self, bg)
> _______________________________________
> I'd appreciate any insight and options you could offer.
>
> TIA -
>
> Art Hunkins
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net