[Sugar-devel] How to setup an environment to develop activities
Tony Anderson
tony_anderson at usa.net
Tue Oct 29 10:13:01 EDT 2013
HI, Sai
Sugar activities are written in Python. Ubuntu 12.04 is a good
development environment for Python.
The BlockParty activity (http://activities.sugarlabs.org) illustrates
using the __main__ feature of Python to
create an activity which will run as an independent Python program or as
a class which inherits from activity.py.
This approach enables you to focus on the functionality of the activity.
I think you will find in most cases that meeting
the special requirements of Sugar integration will be straightforward.
I believe a Sugar Activity developer should have an XO to make sure the
activity runs correctly in the target environment.
Emulation is difficult because of the special characteristics of the XO
screen.
The XO (and Sugar) environment is undergoing a transition driven by a
need to be downstream from supported software
and adapting to the XO-4 touchscreen. So, integration with Sugar may
have to done twice.
James Simmons book, 'Make Your Own Sugar Activities' is an excellent
resource: https://flossmanuals.net/make-your-own-sugar-activities/.
Tony
On 10/29/2013 08:10 AM, sugar-devel-request at lists.sugarlabs.org wrote:
> Message: 3
> Date: Tue, 29 Oct 2013 15:18:55 +0530
> From: Sai Vineet<saivineet89 at gmail.com>
> To:"sugar-devel at lists.sugarlabs.org"
> <sugar-devel at lists.sugarlabs.org>
> Subject: [Sugar-devel] How to setup a environment to develop
> activities
> Message-ID:
> <CAK6RhwRQ02xPj1qTw3uYQvJtac16MOhXitNr1eKmmbEBzn+0QA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> How can I setup a environment to develop activities? I would like to fork,
> and clone it offline and then edit code. Then I would want to test.
>
> I am on Ubuntu 12.04. I have setup sweets-sugar-emulator and can use it.
> But when I cloned "browse" activity, and run "python setup.py dev" from the
> terminal activity, then it gave me a error saying that there is no module
> called sugar3. But I discovered there is a module named "sugar".
> sweets-sugar is running sugar 0.94.
More information about the Sugar-devel
mailing list