« Return to Thread: Final csndsugui question

Final csndsugui question

by Art Hunkins :: Rate this Message:

Reply to Author | View in Thread

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@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

 « Return to Thread: Final csndsugui question