[Sugar-devel] Screen Reposition?
Tomeu Vizoso
tomeu at sugarlabs.org
Mon Aug 3 11:03:37 EDT 2009
On Mon, Aug 3, 2009 at 16:55, Art Hunkins<abhunkin at uncg.edu> wrote:
> I've had second thoughts on this issue.
>
> The problem is not that "SoaS text us way too small when displayed on an
> XO-1." SoaS text, *when properly displayed on its native screen (i.e., sized
> to/filling the entire screen)*, displays fine on an XO-1.
>
> The problem is that activities written for the XO-1 do not always display
> properly (i.e., fill the screen) in SoaS.
>
> It would have been incredibly helpful if SoaS included a resizing mechanism
> that permits most XO-1 projects to display properly in SoaS.
>
> I understand that projects written in GTK+ automatically resize;
> unfortunately those in PyGTK don't. Assuming that no absolute positioning is
> involved, IMHO, SoaS should - by itself - resize.
PyGTK is a thin layer over Gtk+, both have the same capabilities in this regard.
> The alternative, of course, is for everyone who built for the XO-1 using
> PyGTK, to recode their activities. Unless SoaS includes such a resize
> capability, many fine activities, I presume, will be lost to future
> generations.
In most cases not much code will need to be modified. Aleksey has been
improving the layout of several activities so they adapt better to
other resolutions, but more help is welcome.
> Is it still possible that resize capability, at least for PyGTK code without
> absolute positioning, might be included in SoaS?
I don't know if it's possible, anyone has an idea of how feasible is this?
Regards,
Tomeu
> (I, for one, am otherwise confronting the need to either completely recode,
> or to offer two versions of my activity - one for the XO-1, one for SoaS.)
>
> Art Hunkins
>
> ----- Original Message -----
> From: "David Farning" <dfarning at sugarlabs.org>
> To: "Art Hunkins" <abhunkin at uncg.edu>
> Cc: <sugar-devel at lists.sugarlabs.org>
> Sent: Sunday, August 02, 2009 6:19 PM
> Subject: Re: [Sugar-devel] Screen Reposition?
>
>
>> On Sat, Aug 1, 2009 at 8:28 PM, Art Hunkins<abhunkin at uncg.edu> wrote:
>>> Did you mean something like:
>>> SoaS text is way too small when displayed on an XO-1?
>>
>> Yes, something like that with the very useful information you provided
>> above.
>>
>> david
>>
>>> Art Hunkins
>>>
>>> ----- Original Message ----- From: "David Farning"
>>> <dfarning at sugarlabs.org>
>>> To: "Art Hunkins" <abhunkin at uncg.edu>
>>> Cc: <sugar-devel at lists.sugarlabs.org>
>>> Sent: Saturday, August 01, 2009 7:55 PM
>>> Subject: Re: [Sugar-devel] Screen Reposition?
>>>
>>>
>>>> Art,
>>>>
>>>> Would you mind taking a look at the bug tracker[1] and adding this
>>>> issue as new bug if it is not already there.
>>>>
>>>> dev.sugarlabs.org
>>>>
>>>> david
>>>>
>>>> On Sat, Aug 1, 2009 at 6:23 PM, 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).
>>>>>
>>>>> 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
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>
>>>
>
> _______________________________________________
> 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