[Sugar-devel] How to write an html activity

Manuel Quiñones manuq at laptop.org
Fri May 3 10:42:28 EDT 2013


2013/5/3 Daniel Narvaez <dwnarvaez at gmail.com>:
> Hello,
>
> the initial bits of the html activities work has landed. It should now be
> relatively easy to start writing an activity.
>
> First of all you will need a development environment. See
>
> http://sugarlabs.org/~buildbot/docs/build.html
>
> Then open a shell and move to the source directory
>
> make shell
> cd source
>
> Create an activity based on a template
>
> volo create my-activity ./sugar-html-template
>
> Install the activity for development as usual
>
> cd my-activity
> python setup.py dev
>
> To interact with the platform you will need to add the sugar-core-html
> library to your activity
>
> volo add -f ./sugar-html-core
>
> For now the API allows to close the activity and get the xo color. More
> interfaces will be added soon.

Great, we can add a toolbar to the template with:

- an activity button on the left side in the user colors
- a stop button on the right side that stops the activity

--
.. manuq ..


More information about the Sugar-devel mailing list