[Sugar-devel] Screen Reposition?

Art Hunkins abhunkin at uncg.edu
Sat Aug 1 19:23:27 EDT 2009


Second of two responses:

Attached is my activity, OurMusic-1.xo.

As it is, it gives a partial display on SoaS of the reduced screen layout 
(upper-left corner). The basic python script that illustrates my (very) 
basic coding is ourmusic.py. (Notice my dependence on text!)

It, of course, doesn't actually "work" because of the problem of Csound with 
python.

If you'd like to see it running as intended, install it on the XO - but 
first enable three lines in csndsugui.py:
take out the leading #'s in these three spots:
in the "install csnd" toward the beginning;
in the two lines toward the end of the file.

In terms of my "coding style", except for the opening header text, it's 
basically boxes packed within boxes all the way through.

FWIW, if the text remains the size it is (with SoaS on the XO), I'd guess 
this activity just wouldn't work in this context.

I'd appreciate any and all suggestions/comments - of course, *especially* 
how best to deal with screen reposition (if not default type size).

Art Hunkins

----- Original Message ----- 
From: "Tomeu Vizoso" <tomeu at sugarlabs.org>
To: "Art Hunkins" <abhunkin at uncg.edu>
Cc: <sugar-devel at lists.sugarlabs.org>
Sent: Saturday, August 01, 2009 10:47 AM
Subject: Re: [Sugar-devel] Screen Reposition?


> On Fri, Jul 31, 2009 at 21:13, Art Hunkins<abhunkin at uncg.edu> wrote:
>> I finally managed to see a mockup of my XO Activity on one of my SoaS 
>> setups
>> (large monitor).
>>
>> As I feared, everything displayed in the upper left corner of the screen.
>>
>> I know this issue has been frequently discussed here.
>>
>> Can someone point me to the simplest python code for placing an XO
>> screen-full square in the middle of any monitor display? No resizing (at
>> least, not necessarily), just placement in mid-screen (vertically and
>> horizontally).
>>
>> I've got some general ideas, but am not a coder - and my knowledge of 
>> PyGTK
>> is skin-deep.
>
> If I understood correctly what you are asking, it will depend on how
> you are doing your drawing. Maybe you have the code online somewhere
> where we can see it?
>
> Regards,
>
> Tomeu
>
>> Art Hunkins
>>
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OurMusic-1.xo
Type: application/octet-stream
Size: 18266 bytes
Desc: not available
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20090801/e1223032/attachment-0001.obj 


More information about the Sugar-devel mailing list