[Sugar-devel] [FEATURE] Create an adapter that calls the third parties/libraries for better maintainability.
Alejandro García
tonadevv at gmail.com
Sun Feb 10 21:30:26 EST 2019
Yes, something like that.
On Sun, Feb 10, 2019, 8:24 PM Walter Bender <walter.bender at gmail.com wrote:
>
>
> On Sun, Feb 10, 2019 at 9:19 PM Alejandro García <tonadevv at gmail.com>
> wrote:
>
>> I was thinking something like calling a GtkAdapter.Label(...) instead of
>> Gtk.Label (...), or a WebKitAdapter.emit_signal (...) instead of
>> WebKit2.emit_signal (...).
>>
>> Are these examples more clear of what I'm trying to say?
>>
>> The CollabWrapper and SugarGame projects are closer to what I'm trying to
>> say. But not the SugarToolkit, as it creates some widgets, but if the
>> developer needs more, he will use the Gtk library directly.
>>
>
> Maybe you are thinking more of something like this:
>
> https://github.com/sugarlabs/cardsort/blob/master/toolbar_utils.py
>
> -walter
>
>>
>>
>>
>> On Sun, Feb 10, 2019, 7:54 PM Alejandro García <tonadevv at gmail.com wrote:
>>
>>> Ok. Thanks for the clarification.
>>>
>>> On Sun, Feb 10, 2019, 7:44 PM James Cameron <quozl at laptop.org wrote:
>>>
>>>> Examples of adapters used by Sugar activities are;
>>>>
>>>> - Sugar Toolkit for GTK 3, for Python activities,
>>>> https://github.com/sugarlabs/sugar-toolkit-gtk3
>>>> (assumed to be preinstalled on a system that runs Sugar)
>>>>
>>>> - Sugargame, an integration of GTK 3 and Pygame,
>>>> https://github.com/sugarlabs/sugargame
>>>> (kept as copies of files in activity source code)
>>>>
>>>> - CollabWrapper, a simplification of Telepathy,
>>>> https://github.com/sugarlabs/collabwrapper
>>>> (kept as copies of files in activity source code)
>>>>
>>>> - Sugar Web for JavaScript activities,
>>>> https://github.com/sugarlabs/sugar-web
>>>> (kept as copies of files in activity source code)
>>>>
>>>> We also call them Python modules or Sugar components.
>>>>
>>>> Please learn each of these adapters fully.
>>>>
>>>> We already have all the adapters needed, but if you have an idea for a
>>>> new one, please specify it and show how it would simplify maintenance.
>>>>
>>>> Also, there are some common code patterns in activities that could be
>>>> added to the above adapters.
>>>>
>>>> A disadvantage of adapters is where they are packaged for Linux
>>>> distributions, such as the Toolkit, because then API version
>>>> dependencies have to be considered. (e.g. if we have to add a feature
>>>> to the Toolkit to support a new release of the Chat activity, then
>>>> those new releases of the Chat activity won't be able to be used on
>>>> old releases of the Toolkit.)
>>>>
>>>> --
>>>> James Cameron
>>>> http://quozl.netrek.org/
>>>> _______________________________________________
>>>> 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
>>
>
>
> --
> Walter Bender
> Sugar Labs
> http://www.sugarlabs.org
> <http://www.sugarlabs.org>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20190210/bd2d9738/attachment.html>
More information about the Sugar-devel
mailing list