[Sugar-devel] Screen Reposition?

Tomeu Vizoso tomeu at sugarlabs.org
Sun Aug 2 06:15:32 EDT 2009


On Sun, Aug 2, 2009 at 01:23, Art Hunkins<abhunkin at uncg.edu> wrote:
> 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).

GUIs created with Gtk+ will adapt to different screen resolutions
provided you don't set any fixed positions nor sizes, and you place
your widgets so they expand when more space is available. I'm not
sure, but I suspect that the csndgui widgets weren't developed with
this in mind? Maybe we should ask Victor Lazzarini?

Also, reading the "Packing Widgets" section in the Gtk+ tutorial may help:

http://library.gnome.org/devel/gtk-tutorial/stable/

Regards,

Tomeu

> 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
>


More information about the Sugar-devel mailing list