<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sugarlabs.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tonyforster</id>
	<title>Sugar Labs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sugarlabs.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tonyforster"/>
	<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/go/Special:Contributions/Tonyforster"/>
	<updated>2026-04-29T20:44:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Sandbox&amp;diff=93588</id>
		<title>Sandbox</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Sandbox&amp;diff=93588"/>
		<updated>2014-11-05T05:50:56Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* This is a title */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Testing! again. ok.  http://wiki.laptop.org&lt;br /&gt;
&lt;br /&gt;
== This is a title ==&lt;br /&gt;
&lt;br /&gt;
I can write whatever I like... well, almost...&lt;br /&gt;
&lt;br /&gt;
* Fish&lt;br /&gt;
* Meat&lt;br /&gt;
* Veggies&lt;br /&gt;
* Ice cream&lt;br /&gt;
&lt;br /&gt;
== Test interwiki links ==&lt;br /&gt;
The API call http://wiki.sugarlabs.org/api.php?action=query&amp;amp;meta=siteinfo&amp;amp;siprop=interwikimap dumps the  set of interwiki links.  [[Special:Interwiki]] provides a tool to edit them. Let&#039;s try some links.&lt;br /&gt;
* [[olpc:Help Activity refresh]]&lt;br /&gt;
* [[wikipedia:Constructionism (learning theory)]]&lt;br /&gt;
&lt;br /&gt;
== Test Interwiki image links ==&lt;br /&gt;
Here&#039;s a screenshot from w.l.o, [[olpc:File:Activity_browse.jpg]], with the extra params that usually cause image display.&lt;br /&gt;
: [[olpc:File:Activity_browse.jpg|right|400px|thumb|Browse activity]]&lt;br /&gt;
doesn&#039;t seem to work?!&lt;br /&gt;
:: The &amp;lt;nowiki&amp;gt;[[File:imagefile|options]]&amp;lt;/nowiki&amp;gt; code works with the local wiki image folder.  One can embed sized external images from the absolute URI, such as http://wiki.laptop.org/skins/common/images/OLPC_wiki_logo.png or http://wiki.laptop.org/images/thumb/9/93/Ul_warning.png/120px-Ul_warning.png&lt;br /&gt;
&lt;br /&gt;
The URI for an image can be discovered by inspecting the HTML element of an example image in the source wiki with a browser source inspector, such as, right click, Inspect Element in Firefox.&lt;br /&gt;
&lt;br /&gt;
== Video support in Mediawiki ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TimedMediaHandler ===&lt;br /&gt;
&lt;br /&gt;
These examples employ the [http://www.mediawiki.org/wiki/Extension:TimedMediaHandler TimedMediaHandler] extension:&lt;br /&gt;
&lt;br /&gt;
==== Matroska + WebM ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Works in Chromium 18 and Firefox 9:&lt;br /&gt;
&lt;br /&gt;
[[File:Itaipu.webm]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== OGG Theora + Vorbis ====&lt;br /&gt;
&lt;br /&gt;
Works in Chromium 18 and Firefox 9:&lt;br /&gt;
&lt;br /&gt;
[[File:Shinkansen.ogv]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== MPEG-4 x264 ====&lt;br /&gt;
&lt;br /&gt;
This doesn&#039;t work:&lt;br /&gt;
&lt;br /&gt;
[[File:Rio_de_Janeiro.mp4]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Sandbox/OldVideoPlugins]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Links to the raw videos ===&lt;br /&gt;
&lt;br /&gt;
* http://codewiz.org/pub/pictures/vacation/iguazu_itaipu_2010/itaipu/MVI_1052.webm&lt;br /&gt;
* http://codewiz.org/pub/pictures/vacation/japan_2009/Shinkansen/00011-x264.avi&lt;br /&gt;
* http://codewiz.org/pub/pictures/vacation/japan_2009/Shinkansen/00008-mjpeg.avi&lt;br /&gt;
* http://codewiz.org/pub/pictures/vacation/japan_2009/Shinkansen/00010.ogg&lt;br /&gt;
&lt;br /&gt;
== Iframe ==&lt;br /&gt;
{{Iframe|collapsed=|show this historical page|http://wiki.sugarlabs.org/index.php?title=Welcome_to_the_Sugar_Labs_wiki&amp;amp;oldid=2|900|600|0}}&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=SandBox&amp;diff=93587</id>
		<title>SandBox</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=SandBox&amp;diff=93587"/>
		<updated>2014-11-05T05:48:59Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: Created page with &amp;quot;Works for me&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Works for me&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92457</id>
		<title>Features/Parental controls</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92457"/>
		<updated>2014-04-24T03:37:37Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Demand */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==The proposal==&lt;br /&gt;
http://lists.sugarlabs.org/archive/sugar-devel/2014-April/048045.html&lt;br /&gt;
&lt;br /&gt;
==Default or optional feature==&lt;br /&gt;
It is proposed that this be included in XO and SOAS builds. Deployments and others would be free to create customised builds which included or excluded this feature. Would the default builds published by Sugarlabs include the feature?&lt;br /&gt;
&lt;br /&gt;
==Demand==&lt;br /&gt;
&amp;quot;Not only am I basing this on the inclusion of a similar feature in OS X, I am also basing this on the fact that some Nigerian children reportedly visited a Web site containing pornography.&amp;quot; (Ryan)&lt;br /&gt;
&lt;br /&gt;
How often would this feature be used? How do we estimate this?&lt;br /&gt;
&lt;br /&gt;
==Education case==&lt;br /&gt;
Does this feature enhance or detract from Sugar&#039;s effectiveness for facilitating learning.&lt;br /&gt;
&lt;br /&gt;
A central platform of OLPC and Sugar is that children should be creators rather than consumers. This has been facilitated in a number of ways, show source, cloning Activities, easy reflashing of the OS. These features also make it easier to circumvent controls.&lt;br /&gt;
&lt;br /&gt;
==Effectiveness==&lt;br /&gt;
Any kind of lock will fail to block a proportion of illegitimate uses while blocking a proportion of legitimate uses.&lt;br /&gt;
&lt;br /&gt;
There are a number of potential ways to circumvent parental controls&lt;br /&gt;
&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* using Pippy to create a browser&lt;br /&gt;
* using Turtle Blocks to create a browser &lt;br /&gt;
* using Develop to create a browser&lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* installing another browser Activity&lt;br /&gt;
* installing Browse with an altered name&lt;br /&gt;
* reflashing with a different build&lt;br /&gt;
&lt;br /&gt;
==Unintended consequences==&lt;br /&gt;
Would there be unintended losses in functionality?&lt;br /&gt;
&lt;br /&gt;
* legitimate browsing, eg researching breast cancer&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* launching non Sugar activities from Terminal, eg the Arduino IDE&lt;br /&gt;
* Pippy &lt;br /&gt;
* Turtle Blocks &lt;br /&gt;
* Develop &lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* (re)installing Activities&lt;br /&gt;
* reflashing with a different build&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92456</id>
		<title>Features/Parental controls</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92456"/>
		<updated>2014-04-24T02:54:45Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Marketing case */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==The proposal==&lt;br /&gt;
http://lists.sugarlabs.org/archive/sugar-devel/2014-April/048045.html&lt;br /&gt;
&lt;br /&gt;
==Default or optional feature==&lt;br /&gt;
It is proposed that this be included in XO and SOAS builds. Deployments and others would be free to create customised builds which included or excluded this feature. Would the default builds published by Sugarlabs include the feature?&lt;br /&gt;
&lt;br /&gt;
==Demand==&lt;br /&gt;
&amp;quot;Not only am I basing this on the inclusion of a similar feature in OS X, I am also basing this on the fact that some Nigerian children reportedly visited a Web site containing pornography. I have no other evidence.&amp;quot; (Ryan)&lt;br /&gt;
&lt;br /&gt;
How often would this feature be used? How do we estimate this?&lt;br /&gt;
&lt;br /&gt;
==Education case==&lt;br /&gt;
Does this feature enhance or detract from Sugar&#039;s effectiveness for facilitating learning.&lt;br /&gt;
&lt;br /&gt;
A central platform of OLPC and Sugar is that children should be creators rather than consumers. This has been facilitated in a number of ways, show source, cloning Activities, easy reflashing of the OS. These features also make it easier to circumvent controls.&lt;br /&gt;
&lt;br /&gt;
==Effectiveness==&lt;br /&gt;
Any kind of lock will fail to block a proportion of illegitimate uses while blocking a proportion of legitimate uses.&lt;br /&gt;
&lt;br /&gt;
There are a number of potential ways to circumvent parental controls&lt;br /&gt;
&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* using Pippy to create a browser&lt;br /&gt;
* using Turtle Blocks to create a browser &lt;br /&gt;
* using Develop to create a browser&lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* installing another browser Activity&lt;br /&gt;
* installing Browse with an altered name&lt;br /&gt;
* reflashing with a different build&lt;br /&gt;
&lt;br /&gt;
==Unintended consequences==&lt;br /&gt;
Would there be unintended losses in functionality?&lt;br /&gt;
&lt;br /&gt;
* legitimate browsing, eg researching breast cancer&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* launching non Sugar activities from Terminal, eg the Arduino IDE&lt;br /&gt;
* Pippy &lt;br /&gt;
* Turtle Blocks &lt;br /&gt;
* Develop &lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* (re)installing Activities&lt;br /&gt;
* reflashing with a different build&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92455</id>
		<title>Features/Parental controls</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92455"/>
		<updated>2014-04-24T02:44:48Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Effectiveness */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==The proposal==&lt;br /&gt;
http://lists.sugarlabs.org/archive/sugar-devel/2014-April/048045.html&lt;br /&gt;
&lt;br /&gt;
==Default or optional feature==&lt;br /&gt;
It is proposed that this be included in XO and SOAS builds. Deployments and others would be free to create customised builds which included or excluded this feature. Would the default builds published by Sugarlabs include the feature?&lt;br /&gt;
&lt;br /&gt;
==Marketing case==&lt;br /&gt;
&amp;quot;Not only am I basing this on the inclusion of a similar feature in OS X, I am also basing this on the fact that some Nigerian children reportedly visited a Web site containing pornography. I have no other evidence.&amp;quot; (Ryan)&lt;br /&gt;
&lt;br /&gt;
How often would this feature be used? How do we estimate this?&lt;br /&gt;
&lt;br /&gt;
==Education case==&lt;br /&gt;
Does this feature enhance or detract from Sugar&#039;s effectiveness for facilitating learning.&lt;br /&gt;
&lt;br /&gt;
A central platform of OLPC and Sugar is that children should be creators rather than consumers. This has been facilitated in a number of ways, show source, cloning Activities, easy reflashing of the OS. These features also make it easier to circumvent controls.&lt;br /&gt;
&lt;br /&gt;
==Effectiveness==&lt;br /&gt;
Any kind of lock will fail to block a proportion of illegitimate uses while blocking a proportion of legitimate uses.&lt;br /&gt;
&lt;br /&gt;
There are a number of potential ways to circumvent parental controls&lt;br /&gt;
&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* using Pippy to create a browser&lt;br /&gt;
* using Turtle Blocks to create a browser &lt;br /&gt;
* using Develop to create a browser&lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* installing another browser Activity&lt;br /&gt;
* installing Browse with an altered name&lt;br /&gt;
* reflashing with a different build&lt;br /&gt;
&lt;br /&gt;
==Unintended consequences==&lt;br /&gt;
Would there be unintended losses in functionality?&lt;br /&gt;
&lt;br /&gt;
* legitimate browsing, eg researching breast cancer&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* launching non Sugar activities from Terminal, eg the Arduino IDE&lt;br /&gt;
* Pippy &lt;br /&gt;
* Turtle Blocks &lt;br /&gt;
* Develop &lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* (re)installing Activities&lt;br /&gt;
* reflashing with a different build&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92454</id>
		<title>Features/Parental controls</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92454"/>
		<updated>2014-04-24T02:42:06Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Effectiveness */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==The proposal==&lt;br /&gt;
http://lists.sugarlabs.org/archive/sugar-devel/2014-April/048045.html&lt;br /&gt;
&lt;br /&gt;
==Default or optional feature==&lt;br /&gt;
It is proposed that this be included in XO and SOAS builds. Deployments and others would be free to create customised builds which included or excluded this feature. Would the default builds published by Sugarlabs include the feature?&lt;br /&gt;
&lt;br /&gt;
==Marketing case==&lt;br /&gt;
&amp;quot;Not only am I basing this on the inclusion of a similar feature in OS X, I am also basing this on the fact that some Nigerian children reportedly visited a Web site containing pornography. I have no other evidence.&amp;quot; (Ryan)&lt;br /&gt;
&lt;br /&gt;
How often would this feature be used? How do we estimate this?&lt;br /&gt;
&lt;br /&gt;
==Education case==&lt;br /&gt;
Does this feature enhance or detract from Sugar&#039;s effectiveness for facilitating learning.&lt;br /&gt;
&lt;br /&gt;
A central platform of OLPC and Sugar is that children should be creators rather than consumers. This has been facilitated in a number of ways, show source, cloning Activities, easy reflashing of the OS. These features also make it easier to circumvent controls.&lt;br /&gt;
&lt;br /&gt;
==Effectiveness==&lt;br /&gt;
Any kind of lock will fail to block a proportion of illegitimate uses while blocking a proportion of legitimate uses.&lt;br /&gt;
&lt;br /&gt;
There are a number of potential ways to circumvent parental controls&lt;br /&gt;
&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* using Pippy to create a browser&lt;br /&gt;
* using Turtle Blocks to create a browser (yes its easy!)&lt;br /&gt;
* using Develop to create a browser&lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* installing another browser Activity&lt;br /&gt;
* installing Browse with an altered name&lt;br /&gt;
* reflashing with a different build&lt;br /&gt;
&lt;br /&gt;
==Unintended consequences==&lt;br /&gt;
Would there be unintended losses in functionality?&lt;br /&gt;
&lt;br /&gt;
* legitimate browsing, eg researching breast cancer&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* launching non Sugar activities from Terminal, eg the Arduino IDE&lt;br /&gt;
* Pippy &lt;br /&gt;
* Turtle Blocks &lt;br /&gt;
* Develop &lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* (re)installing Activities&lt;br /&gt;
* reflashing with a different build&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92453</id>
		<title>Features/Parental controls</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92453"/>
		<updated>2014-04-24T02:36:13Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Education case */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==The proposal==&lt;br /&gt;
http://lists.sugarlabs.org/archive/sugar-devel/2014-April/048045.html&lt;br /&gt;
&lt;br /&gt;
==Default or optional feature==&lt;br /&gt;
It is proposed that this be included in XO and SOAS builds. Deployments and others would be free to create customised builds which included or excluded this feature. Would the default builds published by Sugarlabs include the feature?&lt;br /&gt;
&lt;br /&gt;
==Marketing case==&lt;br /&gt;
&amp;quot;Not only am I basing this on the inclusion of a similar feature in OS X, I am also basing this on the fact that some Nigerian children reportedly visited a Web site containing pornography. I have no other evidence.&amp;quot; (Ryan)&lt;br /&gt;
&lt;br /&gt;
How often would this feature be used? How do we estimate this?&lt;br /&gt;
&lt;br /&gt;
==Education case==&lt;br /&gt;
Does this feature enhance or detract from Sugar&#039;s effectiveness for facilitating learning.&lt;br /&gt;
&lt;br /&gt;
A central platform of OLPC and Sugar is that children should be creators rather than consumers. This has been facilitated in a number of ways, show source, cloning Activities, easy reflashing of the OS. These features also make it easier to circumvent controls.&lt;br /&gt;
&lt;br /&gt;
==Effectiveness==&lt;br /&gt;
Any kind of lock will fail to block a proportion of illegitimate uses while blocking a proportion of legitimate uses,  there is the saying &amp;quot;locks only keep out honest people&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are a number of potential ways to circumvent parental controls&lt;br /&gt;
&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* using Pippy to create a browser&lt;br /&gt;
* using Turtle Blocks to create a browser (yes its easy!)&lt;br /&gt;
* using Develop to create a browser&lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* installing another browser Activity&lt;br /&gt;
* installing Browse with an altered name&lt;br /&gt;
* reflashing with a different build&lt;br /&gt;
&lt;br /&gt;
==Unintended consequences==&lt;br /&gt;
Would there be unintended losses in functionality?&lt;br /&gt;
&lt;br /&gt;
* legitimate browsing, eg researching breast cancer&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* launching non Sugar activities from Terminal, eg the Arduino IDE&lt;br /&gt;
* Pippy &lt;br /&gt;
* Turtle Blocks &lt;br /&gt;
* Develop &lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* (re)installing Activities&lt;br /&gt;
* reflashing with a different build&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92452</id>
		<title>Features/Parental controls</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92452"/>
		<updated>2014-04-24T02:24:30Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Education case */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==The proposal==&lt;br /&gt;
http://lists.sugarlabs.org/archive/sugar-devel/2014-April/048045.html&lt;br /&gt;
&lt;br /&gt;
==Default or optional feature==&lt;br /&gt;
It is proposed that this be included in XO and SOAS builds. Deployments and others would be free to create customised builds which included or excluded this feature. Would the default builds published by Sugarlabs include the feature?&lt;br /&gt;
&lt;br /&gt;
==Marketing case==&lt;br /&gt;
&amp;quot;Not only am I basing this on the inclusion of a similar feature in OS X, I am also basing this on the fact that some Nigerian children reportedly visited a Web site containing pornography. I have no other evidence.&amp;quot; (Ryan)&lt;br /&gt;
&lt;br /&gt;
How often would this feature be used? How do we estimate this?&lt;br /&gt;
&lt;br /&gt;
==Education case==&lt;br /&gt;
Does this feature enhance or detract from Sugar&#039;s effectiveness for facilitating learning.&lt;br /&gt;
&lt;br /&gt;
A central platform of OLPC and Sugar is that children should be creators rather than consumers. This has been facilitated in a number of ways, show source, cloning Activities, easy reflashing of the OS.&lt;br /&gt;
&lt;br /&gt;
==Effectiveness==&lt;br /&gt;
Any kind of lock will fail to block a proportion of illegitimate uses while blocking a proportion of legitimate uses,  there is the saying &amp;quot;locks only keep out honest people&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are a number of potential ways to circumvent parental controls&lt;br /&gt;
&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* using Pippy to create a browser&lt;br /&gt;
* using Turtle Blocks to create a browser (yes its easy!)&lt;br /&gt;
* using Develop to create a browser&lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* installing another browser Activity&lt;br /&gt;
* installing Browse with an altered name&lt;br /&gt;
* reflashing with a different build&lt;br /&gt;
&lt;br /&gt;
==Unintended consequences==&lt;br /&gt;
Would there be unintended losses in functionality?&lt;br /&gt;
&lt;br /&gt;
* legitimate browsing, eg researching breast cancer&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* launching non Sugar activities from Terminal, eg the Arduino IDE&lt;br /&gt;
* Pippy &lt;br /&gt;
* Turtle Blocks &lt;br /&gt;
* Develop &lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* (re)installing Activities&lt;br /&gt;
* reflashing with a different build&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92451</id>
		<title>Features/Parental controls</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92451"/>
		<updated>2014-04-24T02:20:49Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Effectiveness */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==The proposal==&lt;br /&gt;
http://lists.sugarlabs.org/archive/sugar-devel/2014-April/048045.html&lt;br /&gt;
&lt;br /&gt;
==Default or optional feature==&lt;br /&gt;
It is proposed that this be included in XO and SOAS builds. Deployments and others would be free to create customised builds which included or excluded this feature. Would the default builds published by Sugarlabs include the feature?&lt;br /&gt;
&lt;br /&gt;
==Marketing case==&lt;br /&gt;
&amp;quot;Not only am I basing this on the inclusion of a similar feature in OS X, I am also basing this on the fact that some Nigerian children reportedly visited a Web site containing pornography. I have no other evidence.&amp;quot; (Ryan)&lt;br /&gt;
&lt;br /&gt;
How often would this feature be used? How do we estimate this?&lt;br /&gt;
&lt;br /&gt;
==Education case==&lt;br /&gt;
Does this feature enhance or detract from Sugar&#039;s effectiveness for facilitating learning.&lt;br /&gt;
&lt;br /&gt;
A central platform of OLPC and Sugar is that children should be creators rather than consumers. This has been facilitated in a number of ways, show source, cloning Activities, easy reflashing of the OS. Any locking down of the software would be inconsistent with the design philosophy.&lt;br /&gt;
&lt;br /&gt;
==Effectiveness==&lt;br /&gt;
Any kind of lock will fail to block a proportion of illegitimate uses while blocking a proportion of legitimate uses,  there is the saying &amp;quot;locks only keep out honest people&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are a number of potential ways to circumvent parental controls&lt;br /&gt;
&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* using Pippy to create a browser&lt;br /&gt;
* using Turtle Blocks to create a browser (yes its easy!)&lt;br /&gt;
* using Develop to create a browser&lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* installing another browser Activity&lt;br /&gt;
* installing Browse with an altered name&lt;br /&gt;
* reflashing with a different build&lt;br /&gt;
&lt;br /&gt;
==Unintended consequences==&lt;br /&gt;
Would there be unintended losses in functionality?&lt;br /&gt;
&lt;br /&gt;
* legitimate browsing, eg researching breast cancer&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* launching non Sugar activities from Terminal, eg the Arduino IDE&lt;br /&gt;
* Pippy &lt;br /&gt;
* Turtle Blocks &lt;br /&gt;
* Develop &lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* (re)installing Activities&lt;br /&gt;
* reflashing with a different build&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92450</id>
		<title>Features/Parental controls</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92450"/>
		<updated>2014-04-24T02:15:26Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Unintended consequences */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==The proposal==&lt;br /&gt;
http://lists.sugarlabs.org/archive/sugar-devel/2014-April/048045.html&lt;br /&gt;
&lt;br /&gt;
==Default or optional feature==&lt;br /&gt;
It is proposed that this be included in XO and SOAS builds. Deployments and others would be free to create customised builds which included or excluded this feature. Would the default builds published by Sugarlabs include the feature?&lt;br /&gt;
&lt;br /&gt;
==Marketing case==&lt;br /&gt;
&amp;quot;Not only am I basing this on the inclusion of a similar feature in OS X, I am also basing this on the fact that some Nigerian children reportedly visited a Web site containing pornography. I have no other evidence.&amp;quot; (Ryan)&lt;br /&gt;
&lt;br /&gt;
How often would this feature be used? How do we estimate this?&lt;br /&gt;
&lt;br /&gt;
==Education case==&lt;br /&gt;
Does this feature enhance or detract from Sugar&#039;s effectiveness for facilitating learning.&lt;br /&gt;
&lt;br /&gt;
A central platform of OLPC and Sugar is that children should be creators rather than consumers. This has been facilitated in a number of ways, show source, cloning Activities, easy reflashing of the OS. Any locking down of the software would be inconsistent with the design philosophy.&lt;br /&gt;
&lt;br /&gt;
==Effectiveness==&lt;br /&gt;
There are a number of potential ways to circumvent parental controls&lt;br /&gt;
&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* using Pippy to create a browser&lt;br /&gt;
* using Turtle Blocks to create a browser (yes its easy!)&lt;br /&gt;
* using Develop to create a browser&lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* installing another browser Activity&lt;br /&gt;
* installing Browse with an altered name&lt;br /&gt;
* reflashing with a different build&lt;br /&gt;
&lt;br /&gt;
==Unintended consequences==&lt;br /&gt;
Would there be unintended losses in functionality?&lt;br /&gt;
&lt;br /&gt;
* legitimate browsing, eg researching breast cancer&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* launching non Sugar activities from Terminal, eg the Arduino IDE&lt;br /&gt;
* Pippy &lt;br /&gt;
* Turtle Blocks &lt;br /&gt;
* Develop &lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* (re)installing Activities&lt;br /&gt;
* reflashing with a different build&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92449</id>
		<title>Features/Parental controls</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92449"/>
		<updated>2014-04-24T02:10:57Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Default or optional feature */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==The proposal==&lt;br /&gt;
http://lists.sugarlabs.org/archive/sugar-devel/2014-April/048045.html&lt;br /&gt;
&lt;br /&gt;
==Default or optional feature==&lt;br /&gt;
It is proposed that this be included in XO and SOAS builds. Deployments and others would be free to create customised builds which included or excluded this feature. Would the default builds published by Sugarlabs include the feature?&lt;br /&gt;
&lt;br /&gt;
==Marketing case==&lt;br /&gt;
&amp;quot;Not only am I basing this on the inclusion of a similar feature in OS X, I am also basing this on the fact that some Nigerian children reportedly visited a Web site containing pornography. I have no other evidence.&amp;quot; (Ryan)&lt;br /&gt;
&lt;br /&gt;
How often would this feature be used? How do we estimate this?&lt;br /&gt;
&lt;br /&gt;
==Education case==&lt;br /&gt;
Does this feature enhance or detract from Sugar&#039;s effectiveness for facilitating learning.&lt;br /&gt;
&lt;br /&gt;
A central platform of OLPC and Sugar is that children should be creators rather than consumers. This has been facilitated in a number of ways, show source, cloning Activities, easy reflashing of the OS. Any locking down of the software would be inconsistent with the design philosophy.&lt;br /&gt;
&lt;br /&gt;
==Effectiveness==&lt;br /&gt;
There are a number of potential ways to circumvent parental controls&lt;br /&gt;
&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* using Pippy to create a browser&lt;br /&gt;
* using Turtle Blocks to create a browser (yes its easy!)&lt;br /&gt;
* using Develop to create a browser&lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* installing another browser Activity&lt;br /&gt;
* installing Browse with an altered name&lt;br /&gt;
* reflashing with a different build&lt;br /&gt;
&lt;br /&gt;
==Unintended consequences==&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92448</id>
		<title>Features/Parental controls</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92448"/>
		<updated>2014-04-24T02:07:59Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* The proposal */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==The proposal==&lt;br /&gt;
http://lists.sugarlabs.org/archive/sugar-devel/2014-April/048045.html&lt;br /&gt;
&lt;br /&gt;
==Default or optional feature==&lt;br /&gt;
&lt;br /&gt;
==Marketing case==&lt;br /&gt;
&amp;quot;Not only am I basing this on the inclusion of a similar feature in OS X, I am also basing this on the fact that some Nigerian children reportedly visited a Web site containing pornography. I have no other evidence.&amp;quot; (Ryan)&lt;br /&gt;
&lt;br /&gt;
How often would this feature be used? How do we estimate this?&lt;br /&gt;
&lt;br /&gt;
==Education case==&lt;br /&gt;
Does this feature enhance or detract from Sugar&#039;s effectiveness for facilitating learning.&lt;br /&gt;
&lt;br /&gt;
A central platform of OLPC and Sugar is that children should be creators rather than consumers. This has been facilitated in a number of ways, show source, cloning Activities, easy reflashing of the OS. Any locking down of the software would be inconsistent with the design philosophy.&lt;br /&gt;
&lt;br /&gt;
==Effectiveness==&lt;br /&gt;
There are a number of potential ways to circumvent parental controls&lt;br /&gt;
&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* using Pippy to create a browser&lt;br /&gt;
* using Turtle Blocks to create a browser (yes its easy!)&lt;br /&gt;
* using Develop to create a browser&lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* installing another browser Activity&lt;br /&gt;
* installing Browse with an altered name&lt;br /&gt;
* reflashing with a different build&lt;br /&gt;
&lt;br /&gt;
==Unintended consequences==&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92447</id>
		<title>Features/Parental controls</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92447"/>
		<updated>2014-04-24T02:05:18Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Effectiveness */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==The proposal==&lt;br /&gt;
&lt;br /&gt;
==Default or optional feature==&lt;br /&gt;
&lt;br /&gt;
==Marketing case==&lt;br /&gt;
&amp;quot;Not only am I basing this on the inclusion of a similar feature in OS X, I am also basing this on the fact that some Nigerian children reportedly visited a Web site containing pornography. I have no other evidence.&amp;quot; (Ryan)&lt;br /&gt;
&lt;br /&gt;
How often would this feature be used? How do we estimate this?&lt;br /&gt;
&lt;br /&gt;
==Education case==&lt;br /&gt;
Does this feature enhance or detract from Sugar&#039;s effectiveness for facilitating learning.&lt;br /&gt;
&lt;br /&gt;
A central platform of OLPC and Sugar is that children should be creators rather than consumers. This has been facilitated in a number of ways, show source, cloning Activities, easy reflashing of the OS. Any locking down of the software would be inconsistent with the design philosophy.&lt;br /&gt;
&lt;br /&gt;
==Effectiveness==&lt;br /&gt;
There are a number of potential ways to circumvent parental controls&lt;br /&gt;
&lt;br /&gt;
* switching to Gnome&lt;br /&gt;
* using Pippy to create a browser&lt;br /&gt;
* using Turtle Blocks to create a browser (yes its easy!)&lt;br /&gt;
* using Develop to create a browser&lt;br /&gt;
* cloning an Activity&lt;br /&gt;
* installing another browser Activity&lt;br /&gt;
* installing Browse with an altered name&lt;br /&gt;
* reflashing with a different build&lt;br /&gt;
&lt;br /&gt;
==Unintended consequences==&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92446</id>
		<title>Features/Parental controls</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92446"/>
		<updated>2014-04-24T02:01:31Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Education case */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==The proposal==&lt;br /&gt;
&lt;br /&gt;
==Default or optional feature==&lt;br /&gt;
&lt;br /&gt;
==Marketing case==&lt;br /&gt;
&amp;quot;Not only am I basing this on the inclusion of a similar feature in OS X, I am also basing this on the fact that some Nigerian children reportedly visited a Web site containing pornography. I have no other evidence.&amp;quot; (Ryan)&lt;br /&gt;
&lt;br /&gt;
How often would this feature be used? How do we estimate this?&lt;br /&gt;
&lt;br /&gt;
==Education case==&lt;br /&gt;
Does this feature enhance or detract from Sugar&#039;s effectiveness for facilitating learning.&lt;br /&gt;
&lt;br /&gt;
A central platform of OLPC and Sugar is that children should be creators rather than consumers. This has been facilitated in a number of ways, show source, cloning Activities, easy reflashing of the OS. Any locking down of the software would be inconsistent with the design philosophy.&lt;br /&gt;
&lt;br /&gt;
==Effectiveness==&lt;br /&gt;
&lt;br /&gt;
==Unintended consequences==&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92445</id>
		<title>Features/Parental controls</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92445"/>
		<updated>2014-04-24T01:57:22Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Marketing case */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==The proposal==&lt;br /&gt;
&lt;br /&gt;
==Default or optional feature==&lt;br /&gt;
&lt;br /&gt;
==Marketing case==&lt;br /&gt;
&amp;quot;Not only am I basing this on the inclusion of a similar feature in OS X, I am also basing this on the fact that some Nigerian children reportedly visited a Web site containing pornography. I have no other evidence.&amp;quot; (Ryan)&lt;br /&gt;
&lt;br /&gt;
How often would this feature be used? How do we estimate this?&lt;br /&gt;
&lt;br /&gt;
==Education case==&lt;br /&gt;
&lt;br /&gt;
==Effectiveness==&lt;br /&gt;
&lt;br /&gt;
==Unintended consequences==&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92444</id>
		<title>Features/Parental controls</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Features/Parental_controls&amp;diff=92444"/>
		<updated>2014-04-24T01:53:19Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: Created page with &amp;quot;==The proposal==  ==Default or optional feature==  ==Marketing case==  ==Education case==  ==Effectiveness==  ==Unintended consequences==&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==The proposal==&lt;br /&gt;
&lt;br /&gt;
==Default or optional feature==&lt;br /&gt;
&lt;br /&gt;
==Marketing case==&lt;br /&gt;
&lt;br /&gt;
==Education case==&lt;br /&gt;
&lt;br /&gt;
==Effectiveness==&lt;br /&gt;
&lt;br /&gt;
==Unintended consequences==&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=User:Tonyforster&amp;diff=92443</id>
		<title>User:Tonyforster</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=User:Tonyforster&amp;diff=92443"/>
		<updated>2014-04-24T01:51:23Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Patch */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Me == &lt;br /&gt;
http://tonyforster.blogspot.com/  blog, random thoughts, Turtle Art samples&lt;br /&gt;
&lt;br /&gt;
http://www.freewebs.com/schoolgamemaker/  game programming and learning&lt;br /&gt;
&lt;br /&gt;
forster at ozonline dot com dot au&lt;br /&gt;
&lt;br /&gt;
Interests:&lt;br /&gt;
Activities which maximise the opportunity for self-directed learning: low floor, wide walls and high ceiling with particular emphasis on the walls and ceiling. My Sugar favourites: [[Activities/TurtleArt-0.88 | Turtleart]], Scratch, Etoys. [http://www.yoyogames.com Game Maker] still my Windows favourite.&lt;br /&gt;
&lt;br /&gt;
Currently user testing Turtleart and Sliderule, experimenting with [[Activities/Pippy | Pippy]]. Supporting the [http://www.seaton-olpc-ug.org/?q=node/54 Timor Leste deployment].&lt;br /&gt;
&lt;br /&gt;
== Preschool student Activities, some links==&lt;br /&gt;
Radia Perlman in the 70s when at student at MIT did extensive experiments with preliterate children and the LOGO turtle and built a number of interfaces for them. She also spent some time at Xerox PARC and did many similar experiments with chldren 3 years on up.&lt;br /&gt;
&lt;br /&gt;
http://www.formatex.org/micte2006/virtual/pdf/582.pdf&lt;br /&gt;
see fig 3 with plastic cards showing visual images of turtle commands&lt;br /&gt;
&lt;br /&gt;
http://www.formatex.org/micte2006/virtual/ppt/582.ppt&lt;br /&gt;
similar image&lt;br /&gt;
&lt;br /&gt;
http://logothings.wikispaces.com/&lt;br /&gt;
towards the end, photo of Radia Perlman&#039;s Button Box for Pre-Schoolers&lt;br /&gt;
&lt;br /&gt;
http://alumni.media.mit.edu/~mcnerney/personal-ubicomp.pdf&lt;br /&gt;
more discussion than the above&lt;br /&gt;
&lt;br /&gt;
== Turtle Art - text free ==&lt;br /&gt;
To what extent could pre-literate children use Turtle Art?&lt;br /&gt;
&lt;br /&gt;
Are graphics on blocks really better than text?&lt;br /&gt;
&lt;br /&gt;
Does keeping text labels help develop literacy?&lt;br /&gt;
&lt;br /&gt;
What graphics are best?&lt;br /&gt;
&lt;br /&gt;
Some features, eg. the heap are unlikely to be used by pre-literate children, should they be omitted or retained with text labels?&lt;br /&gt;
&lt;br /&gt;
The following graphic is a discussion starter&lt;br /&gt;
&lt;br /&gt;
[[Image:Textfreeturtle.jpg|300px]]&lt;br /&gt;
&lt;br /&gt;
or another [[http://wiki.sugarlabs.org/images/c/cd/Iconic_Turtle_Art.odt suggested layout]]]&lt;br /&gt;
&lt;br /&gt;
== Text-less outdoor lesson for Turtle Art ==&lt;br /&gt;
[[File:Outdoor-TA.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
== Sliderule ==&lt;br /&gt;
* http://tonyforster.blogspot.com/2010/09/pippy-sliderule.html Pippy [[File:Pippy_sliderule.doc]]&lt;br /&gt;
* http://tonyforster.blogspot.com/2010/09/turtle-sliderule.html Turtle art&lt;br /&gt;
* http://www.freewebs.com/schoolgamemaker/#lobject  Game maker&lt;br /&gt;
* [[File:Slideruletute.pdf]] tutorial&lt;br /&gt;
&lt;br /&gt;
== Presentations - Software Freedom Day Melbourne  ==&lt;br /&gt;
[[File:Softwarefreedomday10.pdf]] presentation&lt;br /&gt;
&lt;br /&gt;
http://luv.asn.au/sfd2010/ photos&lt;br /&gt;
&lt;br /&gt;
[[File:Olpc-rotary.odp]]&lt;br /&gt;
&lt;br /&gt;
[[File:Ictev11.odp]]&lt;br /&gt;
&lt;br /&gt;
== Sea Surface Temperature Mapping ==&lt;br /&gt;
Sea surface temperature mapping, inspired by http://oceanpc.org . Described here is a program to read and display the temperature data which is available at http://www.ncdc.noaa.gov/oa/climate/research/sst/sst.html &lt;br /&gt;
&lt;br /&gt;
The data format is described at ftp://eclipse.ncdc.noaa.gov/pub/ersstv3b/README&lt;br /&gt;
&lt;br /&gt;
The first record in the file [ftp://eclipse.ncdc.noaa.gov/pub/ersstv3b/ascii/ ersst_v3b_2010_2019.asc] , the 2010 to 2019 data set, reads:&lt;br /&gt;
 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999   -19    13    18    11     7    25    64   132   255   427   607   791   990  1198  1408  1616  1816  1999  2149  2258  2327  2360  2365  2355  2347  2359  2393  2443  2500  2568  2654  2736  2789  2826  2869  2904  2911  2903 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999  1489  1432 -9999 -9999 -9999 -9999 -9999   713 -9999   656   715   780   796   744   669   596   476   298   156   113    70  -134  -180  -180  -180  -180&lt;br /&gt;
&lt;br /&gt;
-9999 represents land, the other numbers are degrees C x100&lt;br /&gt;
This record represents a line running from the south pole through to the north pole in 2 degree increments at longtitude 0 for the first month and year. The next record is for lattitude 2 degrees east and so on.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Sample Pippy(Python) program &amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This Pippy(Python) mapping program is supplied as a starter and as inspiration for further investigation&lt;br /&gt;
&lt;br /&gt;
[[File:Write Activity sst.odt]] Pippy code as open office doc. Download and open in Journal. Copy from the Write session, paste into Pippy and run.&lt;br /&gt;
&lt;br /&gt;
Alternatively download this content bundle [[File:Sst.xol]] to the journal, starting the bundle from the journal installs the bundle as off line web content which is accessible from the Browse home page as sst in the Science category. This content includes the Python source and a sample data file.&lt;br /&gt;
&lt;br /&gt;
[[File:Sstcontentbundle.jpg|250px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Challenges &amp;lt;/b&amp;gt;&lt;br /&gt;
* Display the other months and years in the file&lt;br /&gt;
* Display the month and year in the title bar&lt;br /&gt;
* Animate the display&lt;br /&gt;
* Do a legend&lt;br /&gt;
* Display the temperature at the cursor&lt;br /&gt;
* Map other data&lt;br /&gt;
* Error checking&lt;br /&gt;
* Display partly corrupted data sets without crashing&lt;br /&gt;
* Create models of ocean or atmosphere&lt;br /&gt;
* More ideas at http://oceanpc.org , http://marinedataliteracy.org/index.html and http://data.worldbank.org/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of &amp;quot;pygame window&amp;quot;.png|300px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(This program has also been [http://www.freewebs.com/schoolgamemaker/#lobject done in Game Maker] on the Windows OS)&lt;br /&gt;
&lt;br /&gt;
==Reflashing Sugar==&lt;br /&gt;
===Unsigned XO1===&lt;br /&gt;
[http://wiki.laptop.org/go/Clean-install_procedure See]&lt;br /&gt;
&lt;br /&gt;
*Get a developer key and unlock your XO&lt;br /&gt;
*Download the OS image (e.g. osxxx.img) and its CRC file (e.g. osxxx.crc) to USB&lt;br /&gt;
*Press escape at power on for the OK prompt&lt;br /&gt;
  probe-usb copy-nand disk:\osNNN.img&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Will not work if there are 2 partitions, [http://wiki.laptop.org/go/11.2.0]&lt;br /&gt;
&lt;br /&gt;
To install from Open Firmware on an unlocked XO-1, download the .onu and .uim files and run:&lt;br /&gt;
&lt;br /&gt;
  ok update-nand u:\osXX.onu&lt;br /&gt;
&lt;br /&gt;
===Unsigned XO1.5===&lt;br /&gt;
[http://dev.laptop.org.au/projects/xo-au/wiki/Installing_unsigned_builds see]&lt;br /&gt;
*Get a developer key and unlock your XO&lt;br /&gt;
*Download osxxx.zd, osxxx.zsp.fs.zip, (seem to only need the zd file)&lt;br /&gt;
*rename the zip file to fs.zip&lt;br /&gt;
*Pressing the &amp;quot;check mark&amp;quot;(tick) game key, Turn on the laptop, (don&#039;t seem to need the tick)&lt;br /&gt;
*press ESC (X) to get to the OFW prompt &amp;quot;ok&amp;quot;,&lt;br /&gt;
  fs-update u:\osxxx.zd&lt;br /&gt;
&lt;br /&gt;
===Signed builds===&lt;br /&gt;
[http://wiki.laptop.org/go/Release_notes/10.1.2#Installation see]&lt;br /&gt;
&lt;br /&gt;
*Download osxxx.img, osxxx.img.fs.zip to the top directory of a USB drive&lt;br /&gt;
*(osxxx.zd,osxxx.zsp.fs.zip on XO1.5),&lt;br /&gt;
*Rename the zip file to fs.zip&lt;br /&gt;
* hold the 4 game keys at boot&lt;br /&gt;
&lt;br /&gt;
===Deployment key signed builds===&lt;br /&gt;
http://dev.laptop.org.au/projects/xo-au/wiki/Installing_signed_builds&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Nand blaster XO1.5===&lt;br /&gt;
http://wiki.laptop.org/go/Nandblaster_for_XO-1.5&lt;br /&gt;
&lt;br /&gt;
==Dodo mobile broadband on the XO==&lt;br /&gt;
Connected to the [http://www.dodo.com.au/wireless/ Dodo mobile broadband] network with the Huawei E160E&lt;br /&gt;
&lt;br /&gt;
* username my username&lt;br /&gt;
* password my password&lt;br /&gt;
* number *99#&lt;br /&gt;
* APN dodolns1&lt;br /&gt;
* PIN blank&lt;br /&gt;
* PUK blank&lt;br /&gt;
&lt;br /&gt;
(best with power management turned off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Sugar security==&lt;br /&gt;
Some Activities are &#039;protected&#039;, that is they can&#039;t be deleted. This also means that the Activity can&#039;t be downgraded or crossgraded  to the same revision number.&lt;br /&gt;
&lt;br /&gt;
To achieve this you need to delete the Activity&#039;s directory in&lt;br /&gt;
&lt;br /&gt;
 /home/olpc/Activities&lt;br /&gt;
&lt;br /&gt;
This is easily done in older builds in Gnome but newer builds have a hidden and protected Activities directory&lt;br /&gt;
&lt;br /&gt;
 sudo gedit&lt;br /&gt;
&lt;br /&gt;
allows you to edit files but not delete&lt;br /&gt;
&lt;br /&gt;
 chmod 777 ~/Activities&lt;br /&gt;
 chmod 777 ~/Activities -r    #contents too?&lt;br /&gt;
&lt;br /&gt;
unprotects the directory but it is still hidden, in the file manager &amp;lt;i&amp;gt;nautilus&amp;lt;/i&amp;gt; check show hidden files&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To automate this every time Gnome starts, add the following 2 commands to System, Preferences, Startup applications&lt;br /&gt;
&lt;br /&gt;
  rm .hidden&lt;br /&gt;
  chmod 777 Activities&lt;br /&gt;
&lt;br /&gt;
==Enabling debug output==&lt;br /&gt;
Edit /home/olpc/.sugar/debug and uncomment :&lt;br /&gt;
  export SUGAR_LOGGER_LEVEL=debug&lt;br /&gt;
&lt;br /&gt;
==Starting Gnome==&lt;br /&gt;
If not in my settings&lt;br /&gt;
 echo gnome &amp;gt; /home/olpc/.olpc-active-desktop&lt;br /&gt;
and restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting the clock==&lt;br /&gt;
From firmware, using the internet, networkname is your modem/router eg DLINK&lt;br /&gt;
 	ok  essid networkname &lt;br /&gt;
 	ok  ntp-set-clock pool.ntp.org&lt;br /&gt;
 	ok  .clock&lt;br /&gt;
Worked despite timeout message&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
or http://wiki.laptop.org/go/Fix_Clock#Reprogram_the_time.2Fdate&lt;br /&gt;
&lt;br /&gt;
==Text dungeon==&lt;br /&gt;
A text dungeon game for literacy and numeracy&lt;br /&gt;
&lt;br /&gt;
Most of this page transferred to [[Activities/Textdungeon]] , just the command line version here&lt;br /&gt;
&lt;br /&gt;
[[File:Text dungeon.jpg|300px]]&lt;br /&gt;
&lt;br /&gt;
The dungeon [[File:Sampledungeon.doc | description file]] &lt;br /&gt;
&lt;br /&gt;
[[File:Textdungeon.doc | the program]] is a version of the program&#039;s Python code which works from the command line &lt;br /&gt;
&lt;br /&gt;
[[File:Textdungeon1.xo]] is a Sugarised install bundle, works Sugar 0.88 - 0.92&lt;br /&gt;
&lt;br /&gt;
[[File:Textdungeon2.xo]] Sugar compliant icon, do not load sample file if resuming, backspace supported, journal entry saves progress)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Keyboard commands===&lt;br /&gt;
h - help&lt;br /&gt;
&lt;br /&gt;
f - forward&lt;br /&gt;
&lt;br /&gt;
r - right&lt;br /&gt;
&lt;br /&gt;
l - left&lt;br /&gt;
&lt;br /&gt;
b - list backpack contents&lt;br /&gt;
&lt;br /&gt;
p item - pick up item&lt;br /&gt;
&lt;br /&gt;
d item - drop item&lt;br /&gt;
&lt;br /&gt;
u item - use item&lt;br /&gt;
&lt;br /&gt;
q - quit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==1.75 accelerometer ==&lt;br /&gt;
[[File:Screenshot of sugar-activity 3 axis.png|300px]]&lt;br /&gt;
&lt;br /&gt;
The vertical axis is raw reading/4 so 1G=250&lt;br /&gt;
&lt;br /&gt;
[[File:Turtle Art Activity 3 axis.ta]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Screenshots in Sugar==&lt;br /&gt;
===Simple screenshot===&lt;br /&gt;
To take screenshots press Alt 1&lt;br /&gt;
&lt;br /&gt;
This will capture the screen but not the mouse cursor&lt;br /&gt;
&lt;br /&gt;
===Screenshot with cursor===&lt;br /&gt;
To also capture the mouse cursor, install gnome-screenshot. Type the following in Terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo yum install gnome-utils&lt;br /&gt;
&lt;br /&gt;
You can then start the interactive version of gnome-screenshot:&lt;br /&gt;
 gnome-screenshot --interactive&lt;br /&gt;
&lt;br /&gt;
[[File:Gnome-screenshot.png|350px]]&lt;br /&gt;
&lt;br /&gt;
Check that you have the right options selected and that &#039;Include pointer&#039; is selected, then click Take Screenshot. Do not navigate away to the screen you want the screenshot of because you will be unable to navigate back to the utility. At this point we are just checking that the options are correct.&lt;br /&gt;
&lt;br /&gt;
[[File:Gnome-screensh-2.png|350px]]&lt;br /&gt;
&lt;br /&gt;
Select a suitable save location such as &#039;Documents&#039; and click Save.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to take a screenshot. Start gnome-screenshot from Terminal with a suitable delay, eg. 2 seconds&lt;br /&gt;
&lt;br /&gt;
 gnome-screenshot -d 2&lt;br /&gt;
&lt;br /&gt;
Immediately go to the screen you wish to capture, position the cursor where you want it, get the menus etc. as you want them and wait for the dialog box. Click Save. (Later versions of Sugar allow you to access the saved file in Documents but the folder contents are not updated, you may need to switch between Journal and Documents to see the updated file listing.)&lt;br /&gt;
&lt;br /&gt;
==Miscellaneous_Technical_Notes==&lt;br /&gt;
http://wiki.laptop.org/go/User:Kevgor/Miscellaneous_Technical_Notes&lt;br /&gt;
&lt;br /&gt;
==GIT and patches==&lt;br /&gt;
===GIT local repository===&lt;br /&gt;
 sudo install git&lt;br /&gt;
&lt;br /&gt;
clone the git of the Turtle, in a terminal, make:&lt;br /&gt;
&lt;br /&gt;
 git clone  git://git.sugarlabs.org/turtleart/mainline.git&lt;br /&gt;
&lt;br /&gt;
In the mainline folder there are all turtle&#039;s files..&lt;br /&gt;
&lt;br /&gt;
===Patch===&lt;br /&gt;
 sudo yum install patch&lt;br /&gt;
 or&lt;br /&gt;
 sudo yum install patch --nogpg&lt;br /&gt;
&lt;br /&gt;
Should be a &amp;quot;raw patch&amp;quot; link (eg. 2b4ecb0cc7095f47fc944c54512e055c21537ab5.patch)&lt;br /&gt;
&lt;br /&gt;
1. Save that page as a file into ~/Activities/TurtleArt.activity  (eg patching Turtle Art)&lt;br /&gt;
&lt;br /&gt;
2. From terminal run the patch command as follows:&lt;br /&gt;
&lt;br /&gt;
 patch -p1 &amp;lt; 2b4ecb0cc7095f47fc944c54512e055c21537ab5.patch&lt;br /&gt;
&lt;br /&gt;
That is it. (Note, you should be able to use autocomplete when typing&lt;br /&gt;
the command line by hitting tab after typing the first few letters of&lt;br /&gt;
the patch file name.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Activities/Butialo]]&lt;br /&gt;
[[Features/Parental_controls]]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Turtle_Art/Toolbars&amp;diff=92395</id>
		<title>Activities/Turtle Art/Toolbars</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Turtle_Art/Toolbars&amp;diff=92395"/>
		<updated>2014-04-14T08:50:10Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Edit Toolbar */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;__NOTOC__&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
==Toolbars==&lt;br /&gt;
&lt;br /&gt;
===Main Toolbar===&lt;br /&gt;
&lt;br /&gt;
[[Image:TAmain.png|800px]]&lt;br /&gt;
&lt;br /&gt;
From left to right:&lt;br /&gt;
* Activity toolbar (includes sharing; saving/loading options);&lt;br /&gt;
* Edit toolbar (including copy and paste);&lt;br /&gt;
* View toolbar (including full-screen, coordinate overlays; turtle status, etc.);&lt;br /&gt;
* Palette toolbar (including all programming blocks);&lt;br /&gt;
* erase canvas;&lt;br /&gt;
* run project fast (rabbit);&lt;br /&gt;
* run project slow (snail);&lt;br /&gt;
* hide blocks (This button is replaced by the stop button when the project is running);&lt;br /&gt;
* help;&lt;br /&gt;
* load examples;&lt;br /&gt;
* stop activity&lt;br /&gt;
&lt;br /&gt;
;Note: Keyboard short cuts for the above: Alt+ &#039;&#039;&#039;p&#039;&#039;&#039;alette; &#039;&#039;&#039;b&#039;&#039;&#039;locks; &#039;&#039;&#039;r&#039;&#039;&#039;un; &#039;&#039;&#039;w&#039;&#039;&#039;alk; &#039;&#039;&#039;s&#039;&#039;&#039;top; &#039;&#039;&#039;e&#039;&#039;&#039;rase; e.g., Alt+e will erase the screen. Esc will return from full-screen mode.&lt;br /&gt;
&lt;br /&gt;
;Note: The run buttons are tied to the [[#descriptions (6)|Start Block]]. If no Start Block is used, then all blocks are run when either run button is clicked. &lt;br /&gt;
&lt;br /&gt;
;Note: The &amp;quot;rabbit&amp;quot; button runs the blocks at maximum speed. The &amp;quot;snail&amp;quot; button pauses and displays the turtle and block values between each step.&lt;br /&gt;
&lt;br /&gt;
;Note: The [[Image:Show-blocks.svg]] button, which is replaced by the Stop button on the main toolbar while the program is executing, is used to reveal the program blocks. Individual palettes can be hidden by clicking on their highlighted tab.&lt;br /&gt;
&lt;br /&gt;
;Note: On older versions of Sugar (e.g., 0.84), the main toolbar will look like this:&lt;br /&gt;
&lt;br /&gt;
[[File:TA0.84.png|800px]]&lt;br /&gt;
&lt;br /&gt;
===Project Toolbar===&lt;br /&gt;
&lt;br /&gt;
[[File:TurtleBlocks_Toolbar_1.png|800px]]&lt;br /&gt;
&lt;br /&gt;
From left to right:&lt;br /&gt;
* Project title;&lt;br /&gt;
* Write to Journal (on newer versions of Sugar)&lt;br /&gt;
* Keep button (not shown; only appears on older Sugar systems)&lt;br /&gt;
* [[#Sharing|Share]] button;&lt;br /&gt;
* Share blocks button used to share stacks of blocks between collaborators (shown in inactive state);&lt;br /&gt;
* Save palette button (shows save options; see below);&lt;br /&gt;
* Load palette button (shows load options; see below)&lt;br /&gt;
&lt;br /&gt;
;Note: On older Sugar systems, these controls appear on the Import/Export toolbar.&lt;br /&gt;
;Note: To share a stack, click on the share button. The cursor will change to the hand shape [[File:Ta-hand-cursor.png]]. Place the cursor on any block or stack of blocks and click. The blocks will be shared and the cursor will change back to the arrow shape.&lt;br /&gt;
&lt;br /&gt;
[[File:TurtleBlocks_Toolbar_1a.png|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:TurtleBlocks_Toolbar_1b.png|800px]]&lt;br /&gt;
&lt;br /&gt;
===Edit Toolbar===&lt;br /&gt;
&lt;br /&gt;
[[File:TurtleBlocks_Toolbar_2.png|800px]]&lt;br /&gt;
&lt;br /&gt;
The Edit toolbar is used to copy stacks of blocks to the clipboard and to paste stacks from the clipboard. To copy a stack, click on the copy button or type Ctrl-c. The cursor will change to the hand shape [[File:Ta-hand-cursor.png]]. Place the cursor on any block or stack of blocks and click. The blocks will be copied to the Sugar clipboard and the cursor will change back to the arrow shape. To paste from the clipboard, type Ctrl-v or click the paste button.&lt;br /&gt;
&lt;br /&gt;
From left to right:&lt;br /&gt;
* Copy;&lt;br /&gt;
* Paste;&lt;br /&gt;
* Undo (Restore blocks from trash);&lt;br /&gt;
* Save stack to custom palette (use the hand cursor to select a stack to save, the stack of blocks must start with an &amp;quot;action&amp;quot; block);&lt;br /&gt;
* Remove stack from custom palette (use the hand cursor to select a stack on the custom palette to delete)&lt;br /&gt;
&lt;br /&gt;
;Note:After save stack: To show the custom palette or see new stacks it is necessary to restart TurtleBlocks&lt;br /&gt;
&lt;br /&gt;
===View Toolbar===&lt;br /&gt;
&lt;br /&gt;
[[File:TurtleBlocks_Toolbar_4.png|800px]]&lt;br /&gt;
&lt;br /&gt;
From left to right:&lt;br /&gt;
* Full-screen button;&lt;br /&gt;
* Cartesian-coordinate grid;&lt;br /&gt;
* polar-coordinate grid;&lt;br /&gt;
* &#039;&#039;not shown&#039;&#039;: centimeter-coordinate grid (XO-only);&lt;br /&gt;
* Rescale-coordinates button (There are two modes: one pixel-based and one scaled from -20 to 20);&lt;br /&gt;
* Grow block size;&lt;br /&gt;
* Shrink block size&lt;br /&gt;
* Disable/enable hover help&lt;br /&gt;
* display of x,y coordinates, heading of turtle;&lt;br /&gt;
&lt;br /&gt;
=== Palettes Toolbar ===&lt;br /&gt;
&lt;br /&gt;
The palette menus are revealed by clicking on the Block icon on the main toolbar. (On older Sugar systems, select the Projects toolbar. When running Turtle Art from GNOME, the palettes are visible by default.)&lt;br /&gt;
&lt;br /&gt;
[[File:TurtleBlocks_Toolbar_5.png|800px]]&lt;br /&gt;
&lt;br /&gt;
There are ten palettes of program elements available for program construction: [[Activities/Turtle_Art/Turtle|Turtle movements]]; [[Activities/Turtle_Art/Pen|Pen attributes]]; Color attributes; [[Activities/Turtle_Art/Numbers|Numeric operators]]; [[Activities/Turtle_Art/Flow|Logical operators]]; [[Activities/Turtle_Art/Blocks|Logical blocks]]; [[Activities/Turtle_Art/Sensors|Sensor blocks]]; Media blocks; Customization functions; and [[Activities/Turtle_Art/Templates|Presentation blocks]]. An eleventh palette is used for restoring blocks from the trash.&lt;br /&gt;
&lt;br /&gt;
;Note: Additional palettes may be loaded by [[Activities/Turtle_Art#plugins|plugin]] extensions to Turtle Blocks.&lt;br /&gt;
&lt;br /&gt;
;Note: A custom palette is created if you use the &#039;save stack&#039; button on the Edit toolbar.&lt;br /&gt;
&lt;br /&gt;
;Note: Blocks are dragged from the palette onto the canvas surface. To dispose of a block, drag it back onto the palette. (It will be placed onto the trash palette.)&lt;br /&gt;
&lt;br /&gt;
;Note: The palettes can be displayed horizontally or vertically (See below). Orientation is adjusted by clicking on the [[Image:TAorientation0.svg]] and [[Image:TAorientation1.svg]] buttons on the upper-left corner of the palette. &lt;br /&gt;
&lt;br /&gt;
;Note: The palette can be hidden by clicking on the [[Image:TAhide.svg]] button on the lower-right corner of the palette.&lt;br /&gt;
&lt;br /&gt;
;Note: The next palette in the menu can be accessed by clicking on the [[Image:TAnext.svg]] button on the upper-right corner of the palette. &lt;br /&gt;
&lt;br /&gt;
;Note: On smaller screens, a palette may not fit. It can be scrolled by clicking on the [[Image:TAscroll.svg]] button.&lt;br /&gt;
&lt;br /&gt;
====Turtle Palette====&lt;br /&gt;
[[Image:TAturtle.png|800px]]&lt;br /&gt;
&lt;br /&gt;
These blocks are used to control the movements of the turtle.&lt;br /&gt;
&lt;br /&gt;
* forward: move turtle forward&lt;br /&gt;
* back: move turtle backward&lt;br /&gt;
* clean: clear the screen and position the turtle in the center of the screen, pen down, color red, heading 0&lt;br /&gt;
* left: rotate turtle counterclockwise&lt;br /&gt;
* right: rotate turtle clockwise&lt;br /&gt;
* arc: move turtle along an arc&lt;br /&gt;
* set xy: set turtle x,y position (0,0) is the center of the screen&lt;br /&gt;
* seth: set turtle heading &lt;br /&gt;
* xcor: holds current x-coordinate value of the turtle (can be used in place of a number block) &lt;br /&gt;
* ycor: holds current y-coordinate value of the turtle (can be used in place of a number block)&lt;br /&gt;
* heading: holds current heading value of the turtle (can be used in place of a number block)&lt;br /&gt;
&lt;br /&gt;
====Pen Palette====&lt;br /&gt;
[[Image:TApen.png|800px]]&lt;br /&gt;
&lt;br /&gt;
These blocks are used to control the attributes of the turtle&#039;s pen.&lt;br /&gt;
&lt;br /&gt;
* pen up: turtle will not draw when moved&lt;br /&gt;
* pen down: turtle will draw when moved&lt;br /&gt;
* set pen size: sets the width of the line drawn by the turtle&lt;br /&gt;
* fill screen: fill the screen with a color/shade and reposition the turtle in the center of the screen&lt;br /&gt;
* pen size: width of the line drawn by the turtle (can be used in place of a number block)&lt;br /&gt;
* set color: sets the pen color&lt;br /&gt;
* set shade: sets the pen shade&lt;br /&gt;
* set gray: sets the gray-level of the pen (Only available in Turtle Blocks)&lt;br /&gt;
* color: current pen color (can be used in place of a number block)&lt;br /&gt;
* shade: current pen shade (can be used in place of a number block)&lt;br /&gt;
* gray: current pen gray level (can be used in place of a number block) (Only available in Turtle Blocks)&lt;br /&gt;
* start fill: starts a filled polygon (straight sides, not arcs)&lt;br /&gt;
* end fill: ends a fill polygon (straight sides, not arcs)&lt;br /&gt;
&lt;br /&gt;
====Color Palette====&lt;br /&gt;
[[Image:TAcolors.png|800px]]&lt;br /&gt;
&lt;br /&gt;
These blocks can be used with the set-pen-color block in place of a number block.&lt;br /&gt;
&lt;br /&gt;
====Numbers Palette====&lt;br /&gt;
[[Image:TAnumbers.png|800px]]&lt;br /&gt;
&lt;br /&gt;
These blocks are arithmetic and boolean operators.&lt;br /&gt;
&lt;br /&gt;
* addition: adds two numeric inputs (also can be used to concatenate strings)&lt;br /&gt;
* subtraction: subtracts the bottom numeric input from the top input&lt;br /&gt;
* multiplication: multiplies two numeric inputs&lt;br /&gt;
* division: divided top input (numerator) by bottom input (denominator)&lt;br /&gt;
* identity: identity function (used for spacing blocks)&lt;br /&gt;
* modulo (remainder): calculates remainder when dividing top input by the bottom input&lt;br /&gt;
* square root (Only available with Turtle Blocks)&lt;br /&gt;
* random number: generates a random integer between the minimum and maximum values&lt;br /&gt;
* number block: a numeric input&lt;br /&gt;
* greater than: boolean greater than operator (used with flow blocks)&lt;br /&gt;
* less than: boolean less than operator (used with flow blocks)&lt;br /&gt;
* equal to: boolean equal to operator (used with flow blocks)&lt;br /&gt;
* not: boolean not (Only available with Turtle Blocks)&lt;br /&gt;
* and: boolean and (Only available with Turtle Blocks)&lt;br /&gt;
* or: boolean or (Only available with Turtle Blocks)&lt;br /&gt;
&lt;br /&gt;
====Flow Palette====&lt;br /&gt;
[[Image:TAflow.png|800px]]&lt;br /&gt;
&lt;br /&gt;
These blocks control program flow.&lt;br /&gt;
&lt;br /&gt;
* wait: pause program execution (unit is seconds)&lt;br /&gt;
* forever: continuously repeat execute stack under the right flow&lt;br /&gt;
* repeat: repeat the execution of stack under the right flow a specified number of times&lt;br /&gt;
* if/then: conditional execution of the stack under the right flow (uses boolean operators found on the Number palette)&lt;br /&gt;
* if/then/else: conditional execution of the stack under the center and right flows (uses boolean operators found on the Number palette)&lt;br /&gt;
* vertical spacer&lt;br /&gt;
* stop stack: interrupt execution&lt;br /&gt;
* while: execute stack under right flow &#039;&#039;while&#039;&#039; the condition is true (uses boolean operators found on the Number palette) (Only available with Turtle Blocks)&lt;br /&gt;
* until: execute stack under right flow &#039;&#039;until&#039;&#039; the condition is true (uses boolean operators found on the Number palette) (Only available with Turtle Blocks)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Nesting &#039;&#039;while&#039;&#039; and/or &#039;&#039;until&#039;&#039; blocks is not always reliable. If you encounter an error, try putting the nested block in a separate stack, accessed with an action block.&lt;br /&gt;
&lt;br /&gt;
====Blocks Palette====&lt;br /&gt;
[[Image:TAblocks.png|800px]]&lt;br /&gt;
&lt;br /&gt;
These blocks are for defining variables and subroutines. Without actions&lt;br /&gt;
&lt;br /&gt;
* start: connects action to toolbar &#039;Run&#039; button&lt;br /&gt;
* store in: store a number, string, or media object in a named box&lt;br /&gt;
* action: top of named action stack&lt;br /&gt;
* action: execute named action stack&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; When a named action or named box block are used, new blocks appear on the palette that correspond to these names; e.g., if a top of action stack is rename, &amp;quot;to square&amp;quot;, an action block, &amp;quot;to square&amp;quot; is added to the palette.&lt;br /&gt;
&lt;br /&gt;
[[Image:TAblocks_yes.png|800px]]&lt;br /&gt;
&lt;br /&gt;
Palette with additional actions and boxes created by the user.&lt;br /&gt;
&lt;br /&gt;
====Sensors Palette====&lt;br /&gt;
[[Image:TAsensors.png|800px]]&lt;br /&gt;
&lt;br /&gt;
* query keyboard: check for keyboard input (results are stored in the keyboard block)&lt;br /&gt;
* keyboard: current value of keyboard input (can be used in place of a number block)&lt;br /&gt;
* read pixel: push the RGB value of the pixel under the turtle onto the FILO (blue is first, red is last)&lt;br /&gt;
* turtle sees: the &amp;quot;palette color&amp;quot; of the pixel under the turtle&lt;br /&gt;
* time: number of seconds since program began&lt;br /&gt;
* sound: raw data from microphone ranging -32000 to 32000&lt;br /&gt;
* volume (loudness): ranging 0 to 32000&lt;br /&gt;
* pitch: the resolution is +-8Hz&lt;br /&gt;
* brightness: average luminance seen through camera&lt;br /&gt;
* button down: current state of the mouse button (1 == down; 0 == ip)&lt;br /&gt;
* mouse x: x position of mouse&lt;br /&gt;
* mouse y: y position of mouse&lt;br /&gt;
&lt;br /&gt;
The OLPC XO can measure external inputs with its microphone jack:&lt;br /&gt;
* resistance: measurement range is 750 to 14k ohms, (OLPC XO1) and 2k ohms to open circuit (OLPC XO1.5)&lt;br /&gt;
* voltage: measurement range is DC 0.4V to 1.85V.  (OLPC XO1) and 0.17V to 3.0V (OLPC XO1.5)&lt;br /&gt;
&lt;br /&gt;
The OLPC XO 1.75 also includes an accelerometer.&lt;br /&gt;
* accelerate (not shown): measure the acceleration of the computer. Results are pushed to the stack and can be retrieved by using 3 &#039;pop&#039; blocks (one for X (horizontal), one for Y (vertical), and one for Z (forward/backward))&lt;br /&gt;
&lt;br /&gt;
See [[Activities/Turtle Art/Using Turtle Art Sensors]] for more details about the sensor blocks.&lt;br /&gt;
&lt;br /&gt;
([[Activities/Turtle Art/Uso de Tortuga Arte Sensores]] español)&lt;br /&gt;
&lt;br /&gt;
====Media Palette====&lt;br /&gt;
[[Image:TAmedia.png|800px]]&lt;br /&gt;
&lt;br /&gt;
These are a collection of blocks used for displaying media objects, such as images from the Journal.&lt;br /&gt;
&lt;br /&gt;
* journal: Sugar Journal media object (used with show block) (also available in Turtle Art)&lt;br /&gt;
* audio: Sugar Journal media object (used with show block)&lt;br /&gt;
* video: Sugar Journal media object (used with show block)&lt;br /&gt;
* description: Sugar Journal description field (used with show block)&lt;br /&gt;
* text: text string (used with show block; also used with box and action blocks)&lt;br /&gt;
* show: draw text or display media object from the Journal&lt;br /&gt;
* set scale: sets the scale of images displayed with show block&lt;br /&gt;
* save picture: save the canvas to the Sugar Journal as a .png image (note: saves the canvas as displayed)&lt;br /&gt;
* save SVG: save turtle graphics to the Sugar Journal as a .svg image (note: only saves the changes to the canvas in the current execution run)&lt;br /&gt;
* scale: sets scale for show block (100% is full-screen)&lt;br /&gt;
* media wait: used to pause program while audio or video file plays&lt;br /&gt;
* media stop: stop current sound or video&lt;br /&gt;
* media pause: pause current sound or video&lt;br /&gt;
* media resume: resume playing paused media&lt;br /&gt;
* speak: sends text to the voice synthesizer&lt;br /&gt;
* sine wave: plays a sine wave of a given frequency, amplitude, and duration&lt;br /&gt;
&lt;br /&gt;
====Extras Palette====&lt;br /&gt;
[[Image:TAextras.png|800px]]&lt;br /&gt;
&lt;br /&gt;
These are a collection of extra blocks for accessing advanced features only available in Turtle Blocks.&lt;br /&gt;
&lt;br /&gt;
* push: push value onto FILO (first-in last-out) heap&lt;br /&gt;
* show heap: show FILO in status block&lt;br /&gt;
* empty heap: empty the FILO&lt;br /&gt;
* pop: pop value off of the FILO (can be used in place of a number block)&lt;br /&gt;
* print: print value in status block (also available in Turtle Art)&lt;br /&gt;
* comment: program comment (displayed in &amp;quot;walk&amp;quot; mode)&lt;br /&gt;
* chr: Python chr primitive: converts ASCII to character (useful for converting keyboard input to text)&lt;br /&gt;
* int: Python int primitive: converts input to integers&lt;br /&gt;
* Python: a [[Activities/Turtle Art-0.88#Python_function_block|programmable block]] (can be used in place of a number block)&lt;br /&gt;
:: add your own math equation in the block, e.g., sin(x); This block is expandable to support up to three variables, e.g. f(x,y,z)&lt;br /&gt;
* Import Python: [[Activities/Turtle Art-0.88#Python_code_block|import Python code]] from the Sugar Journal (a more general-purpose programmable block). This block accepts a single variable x, as an input or up to 3 variables as an array x[0], x[1] and x[2]&lt;br /&gt;
* Cartesian: display Cartesian coordinate grid overlay&lt;br /&gt;
* polar: display polar coordinate grid overlay&lt;br /&gt;
* turtle: specify which turtle is active&lt;br /&gt;
* turtle shell: import a image from the Journal to use as the turtle&#039;s &#039;shell&#039;, i.e., replace the turtle with a sprite.&lt;br /&gt;
* turtle x: Return x coordinates of turtle&lt;br /&gt;
* turtle y: Return y coordinates of turtle&lt;br /&gt;
* active turtle: the name of active turtle &lt;br /&gt;
* turtle heading: Return heading of turtle&lt;br /&gt;
* URL: gets a text string or image from a URL&lt;br /&gt;
&lt;br /&gt;
====Portfolio Palette====&lt;br /&gt;
[[Image:TAportfolio.png|800px]]&lt;br /&gt;
&lt;br /&gt;
These blocks are used to make multimedia presentations only available in Turtle Blocks.&lt;br /&gt;
&lt;br /&gt;
* hide blocks: hides all blocks and palettes (useful for decluttering the screen during presentations) (also available in Turtle Art)&lt;br /&gt;
* show blocks: shows blocks and palettes (useful for resuming programming after a presentation)&lt;br /&gt;
* full screen: goes into full-screen mode (hides Sugar toolbars)&lt;br /&gt;
* list slide: used for bulleted lists; This block is expandable, allowing you to add as many bullets as you need&lt;br /&gt;
* picture slides: used for picture slides (1×1, 2×2, 1×2, and 2×1)&lt;br /&gt;
Only available in Turtle Blocks:&lt;br /&gt;
* left: holds current x-coordinate value of the left edge of the screen (can be used in place of a number block) &lt;br /&gt;
* top: holds current y-coordinate value of the top edge of the screen (can be used in place of a number block) &lt;br /&gt;
* right: holds current x-coordinate value of the right edge of the screen (can be used in place of a number block) &lt;br /&gt;
* bottom: holds current y-coordinate value of the bottom edge of the screen (can be used in place of a number block)&lt;br /&gt;
* width: screen width (can be used in place of a number block)&lt;br /&gt;
* height: screen height (can be used in place of a number block)&lt;br /&gt;
::Note: The slide blocks expand into stacks that can be edited for customized presentations.&lt;br /&gt;
&lt;br /&gt;
====User custom-stack palette====&lt;br /&gt;
[[Image:TAStack.png|800px]]&lt;br /&gt;
&lt;br /&gt;
The custom palette holds any blocks that have been saved with &amp;quot;Save Stack&amp;quot; option in Edit Toolbar. It lets you reuse stacks between projects.&lt;br /&gt;
Blocks on this palette will expand into action stacks.&lt;br /&gt;
&lt;br /&gt;
;Note: This palette first appears after using the &amp;quot;Save stack&amp;quot; option on the Edit Toolbar.&lt;br /&gt;
&lt;br /&gt;
====Trash Palette====&lt;br /&gt;
[[Image:TAtrash.png|800px]]&lt;br /&gt;
&lt;br /&gt;
This palette holds any blocks that have been put in the trash. You can drag blocks out of the trash to restore them. The trash palette is emptied when you quit Turtle Art.&lt;br /&gt;
&lt;br /&gt;
====Vertical palettes====&lt;br /&gt;
[[Image:TAvertical.png|300px]]&lt;br /&gt;
&lt;br /&gt;
An example of a vertical palette. Vertical palettes are used by default on the OLPC XO laptops running older versions of Sugar.&lt;br /&gt;
&lt;br /&gt;
====Palettes en español====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:TAturtle-es.png&lt;br /&gt;
File:TApen-es.png&lt;br /&gt;
File:TAcolors-es.png&lt;br /&gt;
File:TAnumbers-es.png&lt;br /&gt;
File:TAflow-es.png&lt;br /&gt;
File:TAboxes-es.png&lt;br /&gt;
File:TAmedia-es.png&lt;br /&gt;
File:TAsensors-es.png&lt;br /&gt;
File:TAextras-es.png&lt;br /&gt;
File:TAstack-es.png&lt;br /&gt;
File:TAportfolio-es.png&lt;br /&gt;
File:TAtrash-es.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Turtle_Art/Toolbars&amp;diff=92394</id>
		<title>Activities/Turtle Art/Toolbars</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Turtle_Art/Toolbars&amp;diff=92394"/>
		<updated>2014-04-14T08:48:59Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Edit Toolbar */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;__NOTOC__&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
==Toolbars==&lt;br /&gt;
&lt;br /&gt;
===Main Toolbar===&lt;br /&gt;
&lt;br /&gt;
[[Image:TAmain.png|800px]]&lt;br /&gt;
&lt;br /&gt;
From left to right:&lt;br /&gt;
* Activity toolbar (includes sharing; saving/loading options);&lt;br /&gt;
* Edit toolbar (including copy and paste);&lt;br /&gt;
* View toolbar (including full-screen, coordinate overlays; turtle status, etc.);&lt;br /&gt;
* Palette toolbar (including all programming blocks);&lt;br /&gt;
* erase canvas;&lt;br /&gt;
* run project fast (rabbit);&lt;br /&gt;
* run project slow (snail);&lt;br /&gt;
* hide blocks (This button is replaced by the stop button when the project is running);&lt;br /&gt;
* help;&lt;br /&gt;
* load examples;&lt;br /&gt;
* stop activity&lt;br /&gt;
&lt;br /&gt;
;Note: Keyboard short cuts for the above: Alt+ &#039;&#039;&#039;p&#039;&#039;&#039;alette; &#039;&#039;&#039;b&#039;&#039;&#039;locks; &#039;&#039;&#039;r&#039;&#039;&#039;un; &#039;&#039;&#039;w&#039;&#039;&#039;alk; &#039;&#039;&#039;s&#039;&#039;&#039;top; &#039;&#039;&#039;e&#039;&#039;&#039;rase; e.g., Alt+e will erase the screen. Esc will return from full-screen mode.&lt;br /&gt;
&lt;br /&gt;
;Note: The run buttons are tied to the [[#descriptions (6)|Start Block]]. If no Start Block is used, then all blocks are run when either run button is clicked. &lt;br /&gt;
&lt;br /&gt;
;Note: The &amp;quot;rabbit&amp;quot; button runs the blocks at maximum speed. The &amp;quot;snail&amp;quot; button pauses and displays the turtle and block values between each step.&lt;br /&gt;
&lt;br /&gt;
;Note: The [[Image:Show-blocks.svg]] button, which is replaced by the Stop button on the main toolbar while the program is executing, is used to reveal the program blocks. Individual palettes can be hidden by clicking on their highlighted tab.&lt;br /&gt;
&lt;br /&gt;
;Note: On older versions of Sugar (e.g., 0.84), the main toolbar will look like this:&lt;br /&gt;
&lt;br /&gt;
[[File:TA0.84.png|800px]]&lt;br /&gt;
&lt;br /&gt;
===Project Toolbar===&lt;br /&gt;
&lt;br /&gt;
[[File:TurtleBlocks_Toolbar_1.png|800px]]&lt;br /&gt;
&lt;br /&gt;
From left to right:&lt;br /&gt;
* Project title;&lt;br /&gt;
* Write to Journal (on newer versions of Sugar)&lt;br /&gt;
* Keep button (not shown; only appears on older Sugar systems)&lt;br /&gt;
* [[#Sharing|Share]] button;&lt;br /&gt;
* Share blocks button used to share stacks of blocks between collaborators (shown in inactive state);&lt;br /&gt;
* Save palette button (shows save options; see below);&lt;br /&gt;
* Load palette button (shows load options; see below)&lt;br /&gt;
&lt;br /&gt;
;Note: On older Sugar systems, these controls appear on the Import/Export toolbar.&lt;br /&gt;
;Note: To share a stack, click on the share button. The cursor will change to the hand shape [[File:Ta-hand-cursor.png]]. Place the cursor on any block or stack of blocks and click. The blocks will be shared and the cursor will change back to the arrow shape.&lt;br /&gt;
&lt;br /&gt;
[[File:TurtleBlocks_Toolbar_1a.png|800px]]&lt;br /&gt;
&lt;br /&gt;
[[File:TurtleBlocks_Toolbar_1b.png|800px]]&lt;br /&gt;
&lt;br /&gt;
===Edit Toolbar===&lt;br /&gt;
&lt;br /&gt;
[[File:TurtleBlocks_Toolbar_2.png|800px]]&lt;br /&gt;
&lt;br /&gt;
The Edit toolbar is used to copy stacks of blocks to the clipboard and to paste stacks from the clipboard. To copy a stack, click on the copy button or type Ctrl-c. The cursor will change to the hand shape [[File:Ta-hand-cursor.png]]. Place the cursor on any block or stack of blocks and click. The blocks will be copied to the Sugar clipboard and the cursor will change back to the arrow shape. To paste from the clipboard, type Ctrl-v or click the paste button.&lt;br /&gt;
&lt;br /&gt;
From left to right:&lt;br /&gt;
* Copy;&lt;br /&gt;
* Paste;&lt;br /&gt;
* Undo (Restore blocks from trash);&lt;br /&gt;
* Save stack to custom palette (use the hand cursor to select a stack to save, the stack of blocks must atart with an &amp;quot;action&amp;quot; block);&lt;br /&gt;
* Remove stack from custom palette (use the hand cursor to select a stack on the custom palette to delete)&lt;br /&gt;
&lt;br /&gt;
;Note:After save stack: To show the custom palette or see new stacks it is necessary to restart TurtleBlocks&lt;br /&gt;
&lt;br /&gt;
===View Toolbar===&lt;br /&gt;
&lt;br /&gt;
[[File:TurtleBlocks_Toolbar_4.png|800px]]&lt;br /&gt;
&lt;br /&gt;
From left to right:&lt;br /&gt;
* Full-screen button;&lt;br /&gt;
* Cartesian-coordinate grid;&lt;br /&gt;
* polar-coordinate grid;&lt;br /&gt;
* &#039;&#039;not shown&#039;&#039;: centimeter-coordinate grid (XO-only);&lt;br /&gt;
* Rescale-coordinates button (There are two modes: one pixel-based and one scaled from -20 to 20);&lt;br /&gt;
* Grow block size;&lt;br /&gt;
* Shrink block size&lt;br /&gt;
* Disable/enable hover help&lt;br /&gt;
* display of x,y coordinates, heading of turtle;&lt;br /&gt;
&lt;br /&gt;
=== Palettes Toolbar ===&lt;br /&gt;
&lt;br /&gt;
The palette menus are revealed by clicking on the Block icon on the main toolbar. (On older Sugar systems, select the Projects toolbar. When running Turtle Art from GNOME, the palettes are visible by default.)&lt;br /&gt;
&lt;br /&gt;
[[File:TurtleBlocks_Toolbar_5.png|800px]]&lt;br /&gt;
&lt;br /&gt;
There are ten palettes of program elements available for program construction: [[Activities/Turtle_Art/Turtle|Turtle movements]]; [[Activities/Turtle_Art/Pen|Pen attributes]]; Color attributes; [[Activities/Turtle_Art/Numbers|Numeric operators]]; [[Activities/Turtle_Art/Flow|Logical operators]]; [[Activities/Turtle_Art/Blocks|Logical blocks]]; [[Activities/Turtle_Art/Sensors|Sensor blocks]]; Media blocks; Customization functions; and [[Activities/Turtle_Art/Templates|Presentation blocks]]. An eleventh palette is used for restoring blocks from the trash.&lt;br /&gt;
&lt;br /&gt;
;Note: Additional palettes may be loaded by [[Activities/Turtle_Art#plugins|plugin]] extensions to Turtle Blocks.&lt;br /&gt;
&lt;br /&gt;
;Note: A custom palette is created if you use the &#039;save stack&#039; button on the Edit toolbar.&lt;br /&gt;
&lt;br /&gt;
;Note: Blocks are dragged from the palette onto the canvas surface. To dispose of a block, drag it back onto the palette. (It will be placed onto the trash palette.)&lt;br /&gt;
&lt;br /&gt;
;Note: The palettes can be displayed horizontally or vertically (See below). Orientation is adjusted by clicking on the [[Image:TAorientation0.svg]] and [[Image:TAorientation1.svg]] buttons on the upper-left corner of the palette. &lt;br /&gt;
&lt;br /&gt;
;Note: The palette can be hidden by clicking on the [[Image:TAhide.svg]] button on the lower-right corner of the palette.&lt;br /&gt;
&lt;br /&gt;
;Note: The next palette in the menu can be accessed by clicking on the [[Image:TAnext.svg]] button on the upper-right corner of the palette. &lt;br /&gt;
&lt;br /&gt;
;Note: On smaller screens, a palette may not fit. It can be scrolled by clicking on the [[Image:TAscroll.svg]] button.&lt;br /&gt;
&lt;br /&gt;
====Turtle Palette====&lt;br /&gt;
[[Image:TAturtle.png|800px]]&lt;br /&gt;
&lt;br /&gt;
These blocks are used to control the movements of the turtle.&lt;br /&gt;
&lt;br /&gt;
* forward: move turtle forward&lt;br /&gt;
* back: move turtle backward&lt;br /&gt;
* clean: clear the screen and position the turtle in the center of the screen, pen down, color red, heading 0&lt;br /&gt;
* left: rotate turtle counterclockwise&lt;br /&gt;
* right: rotate turtle clockwise&lt;br /&gt;
* arc: move turtle along an arc&lt;br /&gt;
* set xy: set turtle x,y position (0,0) is the center of the screen&lt;br /&gt;
* seth: set turtle heading &lt;br /&gt;
* xcor: holds current x-coordinate value of the turtle (can be used in place of a number block) &lt;br /&gt;
* ycor: holds current y-coordinate value of the turtle (can be used in place of a number block)&lt;br /&gt;
* heading: holds current heading value of the turtle (can be used in place of a number block)&lt;br /&gt;
&lt;br /&gt;
====Pen Palette====&lt;br /&gt;
[[Image:TApen.png|800px]]&lt;br /&gt;
&lt;br /&gt;
These blocks are used to control the attributes of the turtle&#039;s pen.&lt;br /&gt;
&lt;br /&gt;
* pen up: turtle will not draw when moved&lt;br /&gt;
* pen down: turtle will draw when moved&lt;br /&gt;
* set pen size: sets the width of the line drawn by the turtle&lt;br /&gt;
* fill screen: fill the screen with a color/shade and reposition the turtle in the center of the screen&lt;br /&gt;
* pen size: width of the line drawn by the turtle (can be used in place of a number block)&lt;br /&gt;
* set color: sets the pen color&lt;br /&gt;
* set shade: sets the pen shade&lt;br /&gt;
* set gray: sets the gray-level of the pen (Only available in Turtle Blocks)&lt;br /&gt;
* color: current pen color (can be used in place of a number block)&lt;br /&gt;
* shade: current pen shade (can be used in place of a number block)&lt;br /&gt;
* gray: current pen gray level (can be used in place of a number block) (Only available in Turtle Blocks)&lt;br /&gt;
* start fill: starts a filled polygon (straight sides, not arcs)&lt;br /&gt;
* end fill: ends a fill polygon (straight sides, not arcs)&lt;br /&gt;
&lt;br /&gt;
====Color Palette====&lt;br /&gt;
[[Image:TAcolors.png|800px]]&lt;br /&gt;
&lt;br /&gt;
These blocks can be used with the set-pen-color block in place of a number block.&lt;br /&gt;
&lt;br /&gt;
====Numbers Palette====&lt;br /&gt;
[[Image:TAnumbers.png|800px]]&lt;br /&gt;
&lt;br /&gt;
These blocks are arithmetic and boolean operators.&lt;br /&gt;
&lt;br /&gt;
* addition: adds two numeric inputs (also can be used to concatenate strings)&lt;br /&gt;
* subtraction: subtracts the bottom numeric input from the top input&lt;br /&gt;
* multiplication: multiplies two numeric inputs&lt;br /&gt;
* division: divided top input (numerator) by bottom input (denominator)&lt;br /&gt;
* identity: identity function (used for spacing blocks)&lt;br /&gt;
* modulo (remainder): calculates remainder when dividing top input by the bottom input&lt;br /&gt;
* square root (Only available with Turtle Blocks)&lt;br /&gt;
* random number: generates a random integer between the minimum and maximum values&lt;br /&gt;
* number block: a numeric input&lt;br /&gt;
* greater than: boolean greater than operator (used with flow blocks)&lt;br /&gt;
* less than: boolean less than operator (used with flow blocks)&lt;br /&gt;
* equal to: boolean equal to operator (used with flow blocks)&lt;br /&gt;
* not: boolean not (Only available with Turtle Blocks)&lt;br /&gt;
* and: boolean and (Only available with Turtle Blocks)&lt;br /&gt;
* or: boolean or (Only available with Turtle Blocks)&lt;br /&gt;
&lt;br /&gt;
====Flow Palette====&lt;br /&gt;
[[Image:TAflow.png|800px]]&lt;br /&gt;
&lt;br /&gt;
These blocks control program flow.&lt;br /&gt;
&lt;br /&gt;
* wait: pause program execution (unit is seconds)&lt;br /&gt;
* forever: continuously repeat execute stack under the right flow&lt;br /&gt;
* repeat: repeat the execution of stack under the right flow a specified number of times&lt;br /&gt;
* if/then: conditional execution of the stack under the right flow (uses boolean operators found on the Number palette)&lt;br /&gt;
* if/then/else: conditional execution of the stack under the center and right flows (uses boolean operators found on the Number palette)&lt;br /&gt;
* vertical spacer&lt;br /&gt;
* stop stack: interrupt execution&lt;br /&gt;
* while: execute stack under right flow &#039;&#039;while&#039;&#039; the condition is true (uses boolean operators found on the Number palette) (Only available with Turtle Blocks)&lt;br /&gt;
* until: execute stack under right flow &#039;&#039;until&#039;&#039; the condition is true (uses boolean operators found on the Number palette) (Only available with Turtle Blocks)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Nesting &#039;&#039;while&#039;&#039; and/or &#039;&#039;until&#039;&#039; blocks is not always reliable. If you encounter an error, try putting the nested block in a separate stack, accessed with an action block.&lt;br /&gt;
&lt;br /&gt;
====Blocks Palette====&lt;br /&gt;
[[Image:TAblocks.png|800px]]&lt;br /&gt;
&lt;br /&gt;
These blocks are for defining variables and subroutines. Without actions&lt;br /&gt;
&lt;br /&gt;
* start: connects action to toolbar &#039;Run&#039; button&lt;br /&gt;
* store in: store a number, string, or media object in a named box&lt;br /&gt;
* action: top of named action stack&lt;br /&gt;
* action: execute named action stack&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; When a named action or named box block are used, new blocks appear on the palette that correspond to these names; e.g., if a top of action stack is rename, &amp;quot;to square&amp;quot;, an action block, &amp;quot;to square&amp;quot; is added to the palette.&lt;br /&gt;
&lt;br /&gt;
[[Image:TAblocks_yes.png|800px]]&lt;br /&gt;
&lt;br /&gt;
Palette with additional actions and boxes created by the user.&lt;br /&gt;
&lt;br /&gt;
====Sensors Palette====&lt;br /&gt;
[[Image:TAsensors.png|800px]]&lt;br /&gt;
&lt;br /&gt;
* query keyboard: check for keyboard input (results are stored in the keyboard block)&lt;br /&gt;
* keyboard: current value of keyboard input (can be used in place of a number block)&lt;br /&gt;
* read pixel: push the RGB value of the pixel under the turtle onto the FILO (blue is first, red is last)&lt;br /&gt;
* turtle sees: the &amp;quot;palette color&amp;quot; of the pixel under the turtle&lt;br /&gt;
* time: number of seconds since program began&lt;br /&gt;
* sound: raw data from microphone ranging -32000 to 32000&lt;br /&gt;
* volume (loudness): ranging 0 to 32000&lt;br /&gt;
* pitch: the resolution is +-8Hz&lt;br /&gt;
* brightness: average luminance seen through camera&lt;br /&gt;
* button down: current state of the mouse button (1 == down; 0 == ip)&lt;br /&gt;
* mouse x: x position of mouse&lt;br /&gt;
* mouse y: y position of mouse&lt;br /&gt;
&lt;br /&gt;
The OLPC XO can measure external inputs with its microphone jack:&lt;br /&gt;
* resistance: measurement range is 750 to 14k ohms, (OLPC XO1) and 2k ohms to open circuit (OLPC XO1.5)&lt;br /&gt;
* voltage: measurement range is DC 0.4V to 1.85V.  (OLPC XO1) and 0.17V to 3.0V (OLPC XO1.5)&lt;br /&gt;
&lt;br /&gt;
The OLPC XO 1.75 also includes an accelerometer.&lt;br /&gt;
* accelerate (not shown): measure the acceleration of the computer. Results are pushed to the stack and can be retrieved by using 3 &#039;pop&#039; blocks (one for X (horizontal), one for Y (vertical), and one for Z (forward/backward))&lt;br /&gt;
&lt;br /&gt;
See [[Activities/Turtle Art/Using Turtle Art Sensors]] for more details about the sensor blocks.&lt;br /&gt;
&lt;br /&gt;
([[Activities/Turtle Art/Uso de Tortuga Arte Sensores]] español)&lt;br /&gt;
&lt;br /&gt;
====Media Palette====&lt;br /&gt;
[[Image:TAmedia.png|800px]]&lt;br /&gt;
&lt;br /&gt;
These are a collection of blocks used for displaying media objects, such as images from the Journal.&lt;br /&gt;
&lt;br /&gt;
* journal: Sugar Journal media object (used with show block) (also available in Turtle Art)&lt;br /&gt;
* audio: Sugar Journal media object (used with show block)&lt;br /&gt;
* video: Sugar Journal media object (used with show block)&lt;br /&gt;
* description: Sugar Journal description field (used with show block)&lt;br /&gt;
* text: text string (used with show block; also used with box and action blocks)&lt;br /&gt;
* show: draw text or display media object from the Journal&lt;br /&gt;
* set scale: sets the scale of images displayed with show block&lt;br /&gt;
* save picture: save the canvas to the Sugar Journal as a .png image (note: saves the canvas as displayed)&lt;br /&gt;
* save SVG: save turtle graphics to the Sugar Journal as a .svg image (note: only saves the changes to the canvas in the current execution run)&lt;br /&gt;
* scale: sets scale for show block (100% is full-screen)&lt;br /&gt;
* media wait: used to pause program while audio or video file plays&lt;br /&gt;
* media stop: stop current sound or video&lt;br /&gt;
* media pause: pause current sound or video&lt;br /&gt;
* media resume: resume playing paused media&lt;br /&gt;
* speak: sends text to the voice synthesizer&lt;br /&gt;
* sine wave: plays a sine wave of a given frequency, amplitude, and duration&lt;br /&gt;
&lt;br /&gt;
====Extras Palette====&lt;br /&gt;
[[Image:TAextras.png|800px]]&lt;br /&gt;
&lt;br /&gt;
These are a collection of extra blocks for accessing advanced features only available in Turtle Blocks.&lt;br /&gt;
&lt;br /&gt;
* push: push value onto FILO (first-in last-out) heap&lt;br /&gt;
* show heap: show FILO in status block&lt;br /&gt;
* empty heap: empty the FILO&lt;br /&gt;
* pop: pop value off of the FILO (can be used in place of a number block)&lt;br /&gt;
* print: print value in status block (also available in Turtle Art)&lt;br /&gt;
* comment: program comment (displayed in &amp;quot;walk&amp;quot; mode)&lt;br /&gt;
* chr: Python chr primitive: converts ASCII to character (useful for converting keyboard input to text)&lt;br /&gt;
* int: Python int primitive: converts input to integers&lt;br /&gt;
* Python: a [[Activities/Turtle Art-0.88#Python_function_block|programmable block]] (can be used in place of a number block)&lt;br /&gt;
:: add your own math equation in the block, e.g., sin(x); This block is expandable to support up to three variables, e.g. f(x,y,z)&lt;br /&gt;
* Import Python: [[Activities/Turtle Art-0.88#Python_code_block|import Python code]] from the Sugar Journal (a more general-purpose programmable block). This block accepts a single variable x, as an input or up to 3 variables as an array x[0], x[1] and x[2]&lt;br /&gt;
* Cartesian: display Cartesian coordinate grid overlay&lt;br /&gt;
* polar: display polar coordinate grid overlay&lt;br /&gt;
* turtle: specify which turtle is active&lt;br /&gt;
* turtle shell: import a image from the Journal to use as the turtle&#039;s &#039;shell&#039;, i.e., replace the turtle with a sprite.&lt;br /&gt;
* turtle x: Return x coordinates of turtle&lt;br /&gt;
* turtle y: Return y coordinates of turtle&lt;br /&gt;
* active turtle: the name of active turtle &lt;br /&gt;
* turtle heading: Return heading of turtle&lt;br /&gt;
* URL: gets a text string or image from a URL&lt;br /&gt;
&lt;br /&gt;
====Portfolio Palette====&lt;br /&gt;
[[Image:TAportfolio.png|800px]]&lt;br /&gt;
&lt;br /&gt;
These blocks are used to make multimedia presentations only available in Turtle Blocks.&lt;br /&gt;
&lt;br /&gt;
* hide blocks: hides all blocks and palettes (useful for decluttering the screen during presentations) (also available in Turtle Art)&lt;br /&gt;
* show blocks: shows blocks and palettes (useful for resuming programming after a presentation)&lt;br /&gt;
* full screen: goes into full-screen mode (hides Sugar toolbars)&lt;br /&gt;
* list slide: used for bulleted lists; This block is expandable, allowing you to add as many bullets as you need&lt;br /&gt;
* picture slides: used for picture slides (1×1, 2×2, 1×2, and 2×1)&lt;br /&gt;
Only available in Turtle Blocks:&lt;br /&gt;
* left: holds current x-coordinate value of the left edge of the screen (can be used in place of a number block) &lt;br /&gt;
* top: holds current y-coordinate value of the top edge of the screen (can be used in place of a number block) &lt;br /&gt;
* right: holds current x-coordinate value of the right edge of the screen (can be used in place of a number block) &lt;br /&gt;
* bottom: holds current y-coordinate value of the bottom edge of the screen (can be used in place of a number block)&lt;br /&gt;
* width: screen width (can be used in place of a number block)&lt;br /&gt;
* height: screen height (can be used in place of a number block)&lt;br /&gt;
::Note: The slide blocks expand into stacks that can be edited for customized presentations.&lt;br /&gt;
&lt;br /&gt;
====User custom-stack palette====&lt;br /&gt;
[[Image:TAStack.png|800px]]&lt;br /&gt;
&lt;br /&gt;
The custom palette holds any blocks that have been saved with &amp;quot;Save Stack&amp;quot; option in Edit Toolbar. It lets you reuse stacks between projects.&lt;br /&gt;
Blocks on this palette will expand into action stacks.&lt;br /&gt;
&lt;br /&gt;
;Note: This palette first appears after using the &amp;quot;Save stack&amp;quot; option on the Edit Toolbar.&lt;br /&gt;
&lt;br /&gt;
====Trash Palette====&lt;br /&gt;
[[Image:TAtrash.png|800px]]&lt;br /&gt;
&lt;br /&gt;
This palette holds any blocks that have been put in the trash. You can drag blocks out of the trash to restore them. The trash palette is emptied when you quit Turtle Art.&lt;br /&gt;
&lt;br /&gt;
====Vertical palettes====&lt;br /&gt;
[[Image:TAvertical.png|300px]]&lt;br /&gt;
&lt;br /&gt;
An example of a vertical palette. Vertical palettes are used by default on the OLPC XO laptops running older versions of Sugar.&lt;br /&gt;
&lt;br /&gt;
====Palettes en español====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:TAturtle-es.png&lt;br /&gt;
File:TApen-es.png&lt;br /&gt;
File:TAcolors-es.png&lt;br /&gt;
File:TAnumbers-es.png&lt;br /&gt;
File:TAflow-es.png&lt;br /&gt;
File:TAboxes-es.png&lt;br /&gt;
File:TAmedia-es.png&lt;br /&gt;
File:TAsensors-es.png&lt;br /&gt;
File:TAextras-es.png&lt;br /&gt;
File:TAstack-es.png&lt;br /&gt;
File:TAportfolio-es.png&lt;br /&gt;
File:TAtrash-es.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Features/Notification_System&amp;diff=92381</id>
		<title>Features/Notification System</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Features/Notification_System&amp;diff=92381"/>
		<updated>2014-04-05T21:26:53Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* How To Test */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
This adds a simple messages notification system for sugar that can be used by the system, journal and activities notifications.&lt;br /&gt;
&lt;br /&gt;
== Owner ==&lt;br /&gt;
* Name: [[User:SAMdroid|SAMdroid]]&lt;br /&gt;
* Email: sam.parkinson3@gmail.com&lt;br /&gt;
&lt;br /&gt;
* Name: [[User:tch|tch]]&lt;br /&gt;
* Email: tch@sugarlabs.org&lt;br /&gt;
&lt;br /&gt;
== Current status ==&lt;br /&gt;
* Targeted release: 0.102&lt;br /&gt;
* Last updated: 8th of Feb&lt;br /&gt;
* Percentage of completion: 90%&lt;br /&gt;
&lt;br /&gt;
== Detailed Description ==&lt;br /&gt;
[[File:Notifications-001.png | thumb | center | 640px | &lt;br /&gt;
&lt;br /&gt;
When a notification is received it displays a pulsing icon, that is specified as part of&lt;br /&gt;
&lt;br /&gt;
the notification, at the top left corner of the screen. This icon stays in there for just&lt;br /&gt;
&lt;br /&gt;
a few seconds.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Notifications-002.png  | thumb | center | 640px | &lt;br /&gt;
&lt;br /&gt;
The received notification can be found at the activities tray. It is represented by a button with a&lt;br /&gt;
&lt;br /&gt;
notification badge.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Notifications-003.png  | thumb | center | 640px | &lt;br /&gt;
&lt;br /&gt;
The button&#039;s palette displays, at the bottom of the palette, all the notifications that are related to the same entity.&lt;br /&gt;
&lt;br /&gt;
Entities can be basically anything, ie., the journal, activities or even scripts running in background.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Notifications-004.png   | thumb | center | 640px | &lt;br /&gt;
&lt;br /&gt;
Every notification must belong to an entity. If one notification is sent, that notification&lt;br /&gt;
&lt;br /&gt;
should create a new icon if and only if there is not a previous icon for the same entity.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Notifications-005.png  | thumb | center | 640px | &lt;br /&gt;
&lt;br /&gt;
If one entity receives more than 5 notifications, scrolling will be used to limit the space.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Notifications-006.png  | thumb | center | 640px | &lt;br /&gt;
&lt;br /&gt;
The notification summary and body are limited in width, only 70 characters will be displayed.]]&lt;br /&gt;
&lt;br /&gt;
== Benefit to Sugar ==&lt;br /&gt;
This would be nice for chat, calenders, and any other kind of even that the user should be aware&lt;br /&gt;
of. It would help bring us into line with the other desktop environs.&lt;br /&gt;
&lt;br /&gt;
== Scope ==&lt;br /&gt;
The current implementation covers most the building blocks that are required for journal, activities&lt;br /&gt;
and system message notifications. At the moment, only system messages are implemented, using these&lt;br /&gt;
same building blocks.&lt;br /&gt;
&lt;br /&gt;
==UI Design==&lt;br /&gt;
[[Design Team/Proposals/Notifications]]&lt;br /&gt;
&lt;br /&gt;
== How To Test ==&lt;br /&gt;
For system notifications you can run this script, ie., from Terminal activity:&lt;br /&gt;
&lt;br /&gt;
    import dbus&lt;br /&gt;
    BUS_NAME = &#039;org.freedesktop.Notifications&#039;&lt;br /&gt;
    OBJ_PATH = &#039;/org/freedesktop/Notifications&#039;&lt;br /&gt;
    IFACE_NAME = &#039;org.freedesktop.Notifications&#039;&lt;br /&gt;
    bus = dbus.SessionBus()&lt;br /&gt;
    notify_obj = bus.get_object(BUS_NAME,OBJ_PATH)&lt;br /&gt;
    notifications = dbus.Interface(notify_obj,IFACE_NAME)&lt;br /&gt;
    notifications.Notify(&amp;quot;Software Update&amp;quot;, 0, &amp;quot;&amp;quot;, &amp;quot;New activities are available!&amp;quot;, &amp;quot;Please check your activities list&amp;quot;, [], {&#039;x-sugar-icon-name&#039;: &#039;module-updater&#039;}, -1)&lt;br /&gt;
&lt;br /&gt;
From activities you can use this simplified method, (Gtk3 is required):&lt;br /&gt;
&lt;br /&gt;
    self.notify_user(&#039;This is the summary&#039;,&#039;This is a much longer body... describing something...&#039;)&lt;br /&gt;
&lt;br /&gt;
== User Experience ==&lt;br /&gt;
These messages notifications should not distract the user, as they are displayed in each notification area.&lt;br /&gt;
&lt;br /&gt;
== Contingency Plan ==&lt;br /&gt;
WORK HARDER&lt;br /&gt;
&lt;br /&gt;
== Comments and Discussion ==&lt;br /&gt;
&lt;br /&gt;
http://lists.sugarlabs.org/archive/sugar-devel/2014-February/047096.html&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Features/Notification_System&amp;diff=92378</id>
		<title>Features/Notification System</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Features/Notification_System&amp;diff=92378"/>
		<updated>2014-04-05T05:49:57Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* How To Test */ changed to double quotes was giving italic&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
This adds a simple messages notification system for sugar that can be used by the system, journal and activities notifications.&lt;br /&gt;
&lt;br /&gt;
== Owner ==&lt;br /&gt;
* Name: [[User:SAMdroid|SAMdroid]]&lt;br /&gt;
* Email: sam.parkinson3@gmail.com&lt;br /&gt;
&lt;br /&gt;
* Name: [[User:tch|tch]]&lt;br /&gt;
* Email: tch@sugarlabs.org&lt;br /&gt;
&lt;br /&gt;
== Current status ==&lt;br /&gt;
* Targeted release: 0.102&lt;br /&gt;
* Last updated: 8th of Feb&lt;br /&gt;
* Percentage of completion: 90%&lt;br /&gt;
&lt;br /&gt;
== Detailed Description ==&lt;br /&gt;
[[File:Notifications-001.png | thumb | center | 640px | &lt;br /&gt;
&lt;br /&gt;
When a notification is received it displays a pulsing icon, that is specified as part of&lt;br /&gt;
&lt;br /&gt;
the notification, at the top left corner of the screen. This icon stays in there for just&lt;br /&gt;
&lt;br /&gt;
a few seconds.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Notifications-002.png  | thumb | center | 640px | &lt;br /&gt;
&lt;br /&gt;
The received notification can be found at the activities tray. It is represented by a button with a&lt;br /&gt;
&lt;br /&gt;
notification badge.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Notifications-003.png  | thumb | center | 640px | &lt;br /&gt;
&lt;br /&gt;
The button&#039;s palette displays, at the bottom of the palette, all the notifications that are related to the same entity.&lt;br /&gt;
&lt;br /&gt;
Entities can be basically anything, ie., the journal, activities or even scripts running in background.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Notifications-004.png   | thumb | center | 640px | &lt;br /&gt;
&lt;br /&gt;
Every notification must belong to an entity. If one notification is sent, that notification&lt;br /&gt;
&lt;br /&gt;
should create a new icon if and only if there is not a previous icon for the same entity.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Notifications-005.png  | thumb | center | 640px | &lt;br /&gt;
&lt;br /&gt;
If one entity receives more than 5 notifications, scrolling will be used to limit the space.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Notifications-006.png  | thumb | center | 640px | &lt;br /&gt;
&lt;br /&gt;
The notification summary and body are limited in width, only 70 characters will be displayed.]]&lt;br /&gt;
&lt;br /&gt;
== Benefit to Sugar ==&lt;br /&gt;
This would be nice for chat, calenders, and any other kind of even that the user should be aware&lt;br /&gt;
of. It would help bring us into line with the other desktop environs.&lt;br /&gt;
&lt;br /&gt;
== Scope ==&lt;br /&gt;
The current implementation covers most the building blocks that are required for journal, activities&lt;br /&gt;
and system message notifications. At the moment, only system messages are implemented, using these&lt;br /&gt;
same building blocks.&lt;br /&gt;
&lt;br /&gt;
==UI Design==&lt;br /&gt;
[[Design Team/Proposals/Notifications]]&lt;br /&gt;
&lt;br /&gt;
== How To Test ==&lt;br /&gt;
For system notifications you can run this script, ie., from Terminal activity:&lt;br /&gt;
&lt;br /&gt;
    import dbus&lt;br /&gt;
    BUS_NAME = &#039;org.freedesktop.Notifications&#039;&lt;br /&gt;
    OBJ_PATH = &#039;/org/freedesktop/Notifications&#039;&lt;br /&gt;
    IFACE_NAME = &#039;org.freedesktop.Notifications&#039;&lt;br /&gt;
    bus = dbus.SessionBus()&lt;br /&gt;
    notify_obj = bus.get_object(BUS_NAME,OBJ_PATH)&lt;br /&gt;
    notifications = dbus.Interface(notify_obj,IFACE_NAME)&lt;br /&gt;
    notifications.Notify(&amp;quot;Software Update&amp;quot;, 0, &amp;quot;&amp;quot;, &amp;quot;New activities are available!&amp;quot;, &amp;quot;Please check your activities list&amp;quot;, [], {&#039;x-sugar-icon-name&#039;: &#039;module-updater&#039;}, -1)&lt;br /&gt;
&lt;br /&gt;
== User Experience ==&lt;br /&gt;
These messages notifications should not distract the user, as they are displayed in each notification area.&lt;br /&gt;
&lt;br /&gt;
== Contingency Plan ==&lt;br /&gt;
WORK HARDER&lt;br /&gt;
&lt;br /&gt;
== Comments and Discussion ==&lt;br /&gt;
&lt;br /&gt;
http://lists.sugarlabs.org/archive/sugar-devel/2014-February/047096.html&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=0.102/Testing&amp;diff=92376</id>
		<title>0.102/Testing</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=0.102/Testing&amp;diff=92376"/>
		<updated>2014-04-05T04:13:04Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* What Should I test */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;[[Category:Testing]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
= Testing Sugar 0.102 =&lt;br /&gt;
&lt;br /&gt;
This page contains information and resources for testing this up-coming Sugar release.&lt;br /&gt;
&lt;br /&gt;
== What Should I test ==&lt;br /&gt;
&lt;br /&gt;
Even though some general testing is required to detect regressions, it is important to give special attention to the new features. Some of these features are:&lt;br /&gt;
&lt;br /&gt;
* Gender and Age in About Me control panel section.&lt;br /&gt;
* Limited number of activities and instance of activities that can be opened at once.&lt;br /&gt;
* Displaying icons on the Update control panel section.&lt;br /&gt;
* Rework of Network control panel section.&lt;br /&gt;
* Labels for Web Services control panel section.&lt;br /&gt;
* Layout of Languages selection method in control panel section.&lt;br /&gt;
* Filters toolbar in the Journal.&lt;br /&gt;
* Notification system to display messages from system and activities. [[Features/Notification System]]&lt;br /&gt;
* Sound adjustment options in the frame, to adjust microphone.&lt;br /&gt;
* Identify external volumes (eg USB drives) by colors.&lt;br /&gt;
&lt;br /&gt;
== Testing with a XO ==&lt;br /&gt;
&lt;br /&gt;
We have created images with the latest Sugar pre-0.102 sources. These builds are based on [https://www.laptop.org.au/ OLPC Australia] images so please note that there are some customized changes too.&lt;br /&gt;
&lt;br /&gt;
* XO-4 [http://harvest.one-education.org/public/3400x/34001xx4.zd 34001xx4.zd] ([http://harvest.one-education.org/public/3400x/34001xx4.zd.md5 md5])&lt;br /&gt;
&lt;br /&gt;
* XO-1.75 [http://harvest.one-education.org/public/3400x/34001xx2.zd 34001xx2.zd] ([http://harvest.one-education.org/public/3400x/34001xx2.zd.md5 md5])&lt;br /&gt;
&lt;br /&gt;
* XO-1.5 [http://harvest.one-education.org/public/3400x/34001xx1.zd 34001xx1.zd] ([http://harvest.one-education.org/public/3400x/34001xx1.zd.md5 md5])&lt;br /&gt;
&lt;br /&gt;
* XO-1 [http://harvest.one-education.org/public/3400x/34001xx0.img 34001xx0.img] ([http://harvest.one-education.org/public/3400x/34001xx0.img.md5 md5])&lt;br /&gt;
&lt;br /&gt;
These images are NOT signed by OLPC, therefore you need an unsecured XO for installing these images. To save some time, you can use [https://github.com/jmcmullen/olpc-teacher-update this tool].&lt;br /&gt;
&lt;br /&gt;
Please consider that these images contains very early work, as we just entered the bug fixing period.&lt;br /&gt;
&lt;br /&gt;
== Known Issues ==&lt;br /&gt;
&lt;br /&gt;
* The font size is too big (unresolved).&lt;br /&gt;
* Sound adjustment in the frame is laggy and displays collaboration related errors (unresolved).&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=0.102/Testing&amp;diff=92370</id>
		<title>0.102/Testing</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=0.102/Testing&amp;diff=92370"/>
		<updated>2014-04-05T02:56:43Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* What Should I test */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;[[Category:Testing]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
= Testing Sugar 0.102 =&lt;br /&gt;
&lt;br /&gt;
This page contains information and resources for testing this up-coming Sugar release.&lt;br /&gt;
&lt;br /&gt;
== What Should I test ==&lt;br /&gt;
&lt;br /&gt;
Even though some general testing is required to detect regressions, it is important to give special attention to the new features. Some of these features are:&lt;br /&gt;
&lt;br /&gt;
* Gender and Age in About Me control panel section.&lt;br /&gt;
* Limited number of activities and instance of activities that can be opened at once.&lt;br /&gt;
* Displaying icons on the Update control panel section.&lt;br /&gt;
* Rework of Network control panel section.&lt;br /&gt;
* Labels for Web Services control panel section.&lt;br /&gt;
* Layout of Languages selection method in control panel section.&lt;br /&gt;
* Filters toolbar in the Journal.&lt;br /&gt;
* Notification system to display messages from system and activities.&lt;br /&gt;
* Sound adjustment options in the frame, to adjust microphone.&lt;br /&gt;
* Identify external volumes (eg USB drives) by colors.&lt;br /&gt;
&lt;br /&gt;
== Testing with a XO ==&lt;br /&gt;
&lt;br /&gt;
We have created images with the latest Sugar pre-0.102 sources. These builds are based on [https://www.laptop.org.au/ OLPC Australia] images so please note that there are some customized changes too.&lt;br /&gt;
&lt;br /&gt;
* XO-4 [http://harvest.one-education.org/public/3400x/34001xx4.zd 34001xx4.zd] ([http://harvest.one-education.org/public/3400x/34001xx4.zd.md5 md5])&lt;br /&gt;
&lt;br /&gt;
* XO-1.75 [http://harvest.one-education.org/public/3400x/34001xx2.zd 34001xx2.zd] ([http://harvest.one-education.org/public/3400x/34001xx2.zd.md5 md5])&lt;br /&gt;
&lt;br /&gt;
* XO-1.5 [http://harvest.one-education.org/public/3400x/34001xx1.zd 34001xx1.zd] ([http://harvest.one-education.org/public/3400x/34001xx1.zd.md5 md5])&lt;br /&gt;
&lt;br /&gt;
* XO-1 [http://harvest.one-education.org/public/3400x/34001xx0.img 34001xx0.img] ([http://harvest.one-education.org/public/3400x/34001xx0.img.md5 md5])&lt;br /&gt;
&lt;br /&gt;
These images are NOT signed by OLPC, therefore you need an unsecured XO for installing these images. To save some time, you can use [https://github.com/jmcmullen/olpc-teacher-update this tool].&lt;br /&gt;
&lt;br /&gt;
Please consider that these images contains very early work, as we just entered the bug fixing period.&lt;br /&gt;
&lt;br /&gt;
== Known Issues ==&lt;br /&gt;
&lt;br /&gt;
* The font size is too big (unresolved).&lt;br /&gt;
* Sound adjustment in the frame is laggy and displays collaboration related errors (unresolved).&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92346</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92346"/>
		<updated>2014-04-04T06:09:53Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039; Develop requires Sugar 0.96 or higher to run.&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample &amp;quot;Hello World!&amp;quot; Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
There are 4 &amp;quot;Hello World!&amp;quot; templates to choose from:&lt;br /&gt;
* Gtk2&lt;br /&gt;
* Gtk3  (requires Sugar 0.96 or above to run the Activity you create)&lt;br /&gt;
* Sugargame   &lt;br /&gt;
* Web    (requires Sugar 0.100 or above to run the activity you create)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* The title of the project&lt;br /&gt;
* Edit the Journal description&lt;br /&gt;
* Sharing (disabled)&lt;br /&gt;
* Create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View&#039;&#039;&#039;&lt;br /&gt;
* Switch to dark or light theme&lt;br /&gt;
* Zoom in&lt;br /&gt;
* Zoom out&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* Undo&lt;br /&gt;
* Redo&lt;br /&gt;
* Copy&lt;br /&gt;
* Paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
* Search box&lt;br /&gt;
* Search previous&lt;br /&gt;
* Search next&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* The left hand pane shows the files and directories that comprise your Activity.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* The left hand pane shows the classes, functions and variables in the file on the right.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* The left pane shows the log files which contain error messages from running your Activity.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* Your Activity already comprises a number of files, this adds an additional empty file in the current directory.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* Deletes the most recently viewed file, the one displayed in the right pane.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* Runs your activity.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* Quits the Develop Activity.&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity, this is safer than editing an existing Activity. You are offered 4 Activity templates, Gtk2, Gtk3, Sugargame and Web, some of these templates are not compatible with all Sugar versions, Gtk2 should be compatible.&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py. It contains the text &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-helloworld.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it, the triangle points down and you can see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors among other data and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Sugargame===&lt;br /&gt;
Sugargame, based on Pygame makes it easy to create games. See pygame.org&lt;br /&gt;
&lt;br /&gt;
To create a game, start a new Develop project but select Sugargame rather than Gtk2.&lt;br /&gt;
If you run the Activity created, it prints Hello World on a black background.&lt;br /&gt;
&lt;br /&gt;
Look at the file game.py, there are a number of simple changes you can make:&lt;br /&gt;
  BLANCO =(255, 255, 255)  #this sets the red, green and blue values for the white text&lt;br /&gt;
  NEGRO = (0, 0, 0) #this sets the R G B of the black background&lt;br /&gt;
  fuente = pygame.font.SysFont(None, 48) #48 is the text size&lt;br /&gt;
  texto = fuente.render(&#039;Hello world!&#039;, True, BLANCO, NEGRO)  # change Hello world&lt;br /&gt;
  pantalla.blit(texto, ((x / 2) - (x / 10), (y / 2) - (y / 10))) #the location on the screen&lt;br /&gt;
&lt;br /&gt;
Read the documentation at pygame.org, there are lots of exciting things to try. For example, change the line that starts with pantalla.blit to:&lt;br /&gt;
&lt;br /&gt;
  pantalla.blit(texto, pygame.mouse.get_pos())&lt;br /&gt;
&lt;br /&gt;
the text will follow the mouse. Or change this line to:&lt;br /&gt;
&lt;br /&gt;
  pygame.draw.circle(pantalla,BLANCO, pygame.mouse.get_pos(),20,0)&lt;br /&gt;
&lt;br /&gt;
and a circle follows the mouse.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
Pygame  http://www.pygame.org/docs&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
&lt;br /&gt;
Demo of Develop version 40: https://www.youtube.com/watch?v=SChweH6snvw&lt;br /&gt;
&lt;br /&gt;
==Pending tasks==&lt;br /&gt;
* If you want help making better Develop, these are our pending issues: [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=new&amp;amp;status=reopened&amp;amp;component=Develop&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=time&amp;amp;col=changetime&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;order=priority Trac Tickets]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92297</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92297"/>
		<updated>2014-03-29T06:56:20Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Using the Log files to find errors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample &amp;quot;Hello World!&amp;quot; Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
There are 4 &amp;quot;Hello World!&amp;quot; templates to choose from:&lt;br /&gt;
* Gtk2&lt;br /&gt;
* Gtk3  (requires Sugar 0.96 or above to run the Activity you create)&lt;br /&gt;
* Sugargame   &lt;br /&gt;
* Web    (requires Sugar 0.100 or above to run the activity you create)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* the left pane shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity, this is safer than editing an existing Activity. You are offered 4 Activity templates, Gtk2, Gtk3, Sugargame and Web, some of these templates are not compatible with all Sugar versions, Gtk2 should be compatible.&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py. It contains the text &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-helloworld.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it, the triangle points down and you can see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors among other data and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Sugargame===&lt;br /&gt;
Sugargame, based on Pygame makes it easy to create games. See pygame.org&lt;br /&gt;
&lt;br /&gt;
To create a game, start a new Develop project but select Sugargame rather than Gtk2.&lt;br /&gt;
If you run the Activity created, it prints Hello World on a black background.&lt;br /&gt;
&lt;br /&gt;
Look at the file game.py, there are a number of simple changes you can make:&lt;br /&gt;
  BLANCO =(255, 255, 255)  #this sets the red, green and blue values for the white text&lt;br /&gt;
  NEGRO = (0, 0, 0) #this sets the R G B of the black background&lt;br /&gt;
  fuente = pygame.font.SysFont(None, 48) #48 is the text size&lt;br /&gt;
  texto = fuente.render(&#039;Hello world!&#039;, True, BLANCO, NEGRO)  # change Hello world&lt;br /&gt;
  pantalla.blit(texto, ((x / 2) - (x / 10), (y / 2) - (y / 10))) #the location on the screen&lt;br /&gt;
&lt;br /&gt;
Read the documentation at pygame.org, there are lots of exciting things to try. For example, change the line that starts with pantalla.blit to:&lt;br /&gt;
&lt;br /&gt;
  pantalla.blit(texto, pygame.mouse.get_pos())&lt;br /&gt;
&lt;br /&gt;
the text will follow the mouse. Or change this line to:&lt;br /&gt;
&lt;br /&gt;
  pygame.draw.circle(pantalla,BLANCO, pygame.mouse.get_pos(),20,0)&lt;br /&gt;
&lt;br /&gt;
and a circle follows the mouse.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
Pygame  http://www.pygame.org/docs&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92296</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92296"/>
		<updated>2014-03-29T06:54:37Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Changing the icon */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample &amp;quot;Hello World!&amp;quot; Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
There are 4 &amp;quot;Hello World!&amp;quot; templates to choose from:&lt;br /&gt;
* Gtk2&lt;br /&gt;
* Gtk3  (requires Sugar 0.96 or above to run the Activity you create)&lt;br /&gt;
* Sugargame   &lt;br /&gt;
* Web    (requires Sugar 0.100 or above to run the activity you create)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* the left pane shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity, this is safer than editing an existing Activity. You are offered 4 Activity templates, Gtk2, Gtk3, Sugargame and Web, some of these templates are not compatible with all Sugar versions, Gtk2 should be compatible.&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py. It contains the text &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-helloworld.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it, the triangle points down and you can see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Sugargame===&lt;br /&gt;
Sugargame, based on Pygame makes it easy to create games. See pygame.org&lt;br /&gt;
&lt;br /&gt;
To create a game, start a new Develop project but select Sugargame rather than Gtk2.&lt;br /&gt;
If you run the Activity created, it prints Hello World on a black background.&lt;br /&gt;
&lt;br /&gt;
Look at the file game.py, there are a number of simple changes you can make:&lt;br /&gt;
  BLANCO =(255, 255, 255)  #this sets the red, green and blue values for the white text&lt;br /&gt;
  NEGRO = (0, 0, 0) #this sets the R G B of the black background&lt;br /&gt;
  fuente = pygame.font.SysFont(None, 48) #48 is the text size&lt;br /&gt;
  texto = fuente.render(&#039;Hello world!&#039;, True, BLANCO, NEGRO)  # change Hello world&lt;br /&gt;
  pantalla.blit(texto, ((x / 2) - (x / 10), (y / 2) - (y / 10))) #the location on the screen&lt;br /&gt;
&lt;br /&gt;
Read the documentation at pygame.org, there are lots of exciting things to try. For example, change the line that starts with pantalla.blit to:&lt;br /&gt;
&lt;br /&gt;
  pantalla.blit(texto, pygame.mouse.get_pos())&lt;br /&gt;
&lt;br /&gt;
the text will follow the mouse. Or change this line to:&lt;br /&gt;
&lt;br /&gt;
  pygame.draw.circle(pantalla,BLANCO, pygame.mouse.get_pos(),20,0)&lt;br /&gt;
&lt;br /&gt;
and a circle follows the mouse.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
Pygame  http://www.pygame.org/docs&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92295</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92295"/>
		<updated>2014-03-29T06:52:47Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Editing your Activity */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample &amp;quot;Hello World!&amp;quot; Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
There are 4 &amp;quot;Hello World!&amp;quot; templates to choose from:&lt;br /&gt;
* Gtk2&lt;br /&gt;
* Gtk3  (requires Sugar 0.96 or above to run the Activity you create)&lt;br /&gt;
* Sugargame   &lt;br /&gt;
* Web    (requires Sugar 0.100 or above to run the activity you create)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* the left pane shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity, this is safer than editing an existing Activity. You are offered 4 Activity templates, Gtk2, Gtk3, Sugargame and Web, some of these templates are not compatible with all Sugar versions, Gtk2 should be compatible.&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py. It contains the text &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-helloworld.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Sugargame===&lt;br /&gt;
Sugargame, based on Pygame makes it easy to create games. See pygame.org&lt;br /&gt;
&lt;br /&gt;
To create a game, start a new Develop project but select Sugargame rather than Gtk2.&lt;br /&gt;
If you run the Activity created, it prints Hello World on a black background.&lt;br /&gt;
&lt;br /&gt;
Look at the file game.py, there are a number of simple changes you can make:&lt;br /&gt;
  BLANCO =(255, 255, 255)  #this sets the red, green and blue values for the white text&lt;br /&gt;
  NEGRO = (0, 0, 0) #this sets the R G B of the black background&lt;br /&gt;
  fuente = pygame.font.SysFont(None, 48) #48 is the text size&lt;br /&gt;
  texto = fuente.render(&#039;Hello world!&#039;, True, BLANCO, NEGRO)  # change Hello world&lt;br /&gt;
  pantalla.blit(texto, ((x / 2) - (x / 10), (y / 2) - (y / 10))) #the location on the screen&lt;br /&gt;
&lt;br /&gt;
Read the documentation at pygame.org, there are lots of exciting things to try. For example, change the line that starts with pantalla.blit to:&lt;br /&gt;
&lt;br /&gt;
  pantalla.blit(texto, pygame.mouse.get_pos())&lt;br /&gt;
&lt;br /&gt;
the text will follow the mouse. Or change this line to:&lt;br /&gt;
&lt;br /&gt;
  pygame.draw.circle(pantalla,BLANCO, pygame.mouse.get_pos(),20,0)&lt;br /&gt;
&lt;br /&gt;
and a circle follows the mouse.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
Pygame  http://www.pygame.org/docs&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92294</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92294"/>
		<updated>2014-03-29T06:51:09Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* About Develop */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample &amp;quot;Hello World!&amp;quot; Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
There are 4 &amp;quot;Hello World!&amp;quot; templates to choose from:&lt;br /&gt;
* Gtk2&lt;br /&gt;
* Gtk3  (requires Sugar 0.96 or above to run the Activity you create)&lt;br /&gt;
* Sugargame   &lt;br /&gt;
* Web    (requires Sugar 0.100 or above to run the activity you create)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* the left pane shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity, this is safer than editing an existing Activity. You are offered 4 Activity templates, Gtk2, Gtk3, Sugargame and Web, some of these templates are not compatible with all Sugar versions, Gtk2 should be compatible.&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-helloworld.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Sugargame===&lt;br /&gt;
Sugargame, based on Pygame makes it easy to create games. See pygame.org&lt;br /&gt;
&lt;br /&gt;
To create a game, start a new Develop project but select Sugargame rather than Gtk2.&lt;br /&gt;
If you run the Activity created, it prints Hello World on a black background.&lt;br /&gt;
&lt;br /&gt;
Look at the file game.py, there are a number of simple changes you can make:&lt;br /&gt;
  BLANCO =(255, 255, 255)  #this sets the red, green and blue values for the white text&lt;br /&gt;
  NEGRO = (0, 0, 0) #this sets the R G B of the black background&lt;br /&gt;
  fuente = pygame.font.SysFont(None, 48) #48 is the text size&lt;br /&gt;
  texto = fuente.render(&#039;Hello world!&#039;, True, BLANCO, NEGRO)  # change Hello world&lt;br /&gt;
  pantalla.blit(texto, ((x / 2) - (x / 10), (y / 2) - (y / 10))) #the location on the screen&lt;br /&gt;
&lt;br /&gt;
Read the documentation at pygame.org, there are lots of exciting things to try. For example, change the line that starts with pantalla.blit to:&lt;br /&gt;
&lt;br /&gt;
  pantalla.blit(texto, pygame.mouse.get_pos())&lt;br /&gt;
&lt;br /&gt;
the text will follow the mouse. Or change this line to:&lt;br /&gt;
&lt;br /&gt;
  pygame.draw.circle(pantalla,BLANCO, pygame.mouse.get_pos(),20,0)&lt;br /&gt;
&lt;br /&gt;
and a circle follows the mouse.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
Pygame  http://www.pygame.org/docs&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92293</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92293"/>
		<updated>2014-03-29T06:48:42Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* About Develop */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample &amp;quot;Hello World!&amp;quot; Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
There are 4 &amp;quot;Hello World!&amp;quot; templates to choose from:&lt;br /&gt;
* Gtk2&lt;br /&gt;
* Gtk3  (requires Sugar 0.96 or above to run the Activity you create)&lt;br /&gt;
* Sugargame   &lt;br /&gt;
* Web    (requires Sugar 0.100 or above to run the activity you create)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity, this is safer than editing an existing Activity. You are offered 4 Activity templates, Gtk2, Gtk3, Sugargame and Web, some of these templates are not compatible with all Sugar versions, Gtk2 should be compatible.&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-helloworld.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Sugargame===&lt;br /&gt;
Sugargame, based on Pygame makes it easy to create games. See pygame.org&lt;br /&gt;
&lt;br /&gt;
To create a game, start a new Develop project but select Sugargame rather than Gtk2.&lt;br /&gt;
If you run the Activity created, it prints Hello World on a black background.&lt;br /&gt;
&lt;br /&gt;
Look at the file game.py, there are a number of simple changes you can make:&lt;br /&gt;
  BLANCO =(255, 255, 255)  #this sets the red, green and blue values for the white text&lt;br /&gt;
  NEGRO = (0, 0, 0) #this sets the R G B of the black background&lt;br /&gt;
  fuente = pygame.font.SysFont(None, 48) #48 is the text size&lt;br /&gt;
  texto = fuente.render(&#039;Hello world!&#039;, True, BLANCO, NEGRO)  # change Hello world&lt;br /&gt;
  pantalla.blit(texto, ((x / 2) - (x / 10), (y / 2) - (y / 10))) #the location on the screen&lt;br /&gt;
&lt;br /&gt;
Read the documentation at pygame.org, there are lots of exciting things to try. For example, change the line that starts with pantalla.blit to:&lt;br /&gt;
&lt;br /&gt;
  pantalla.blit(texto, pygame.mouse.get_pos())&lt;br /&gt;
&lt;br /&gt;
the text will follow the mouse. Or change this line to:&lt;br /&gt;
&lt;br /&gt;
  pygame.draw.circle(pantalla,BLANCO, pygame.mouse.get_pos(),20,0)&lt;br /&gt;
&lt;br /&gt;
and a circle follows the mouse.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
Pygame  http://www.pygame.org/docs&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92292</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92292"/>
		<updated>2014-03-29T06:37:03Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* About Develop */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample Hello World Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
There are 4 &amp;quot;Hello World!&amp;quot; templates to choose from:&lt;br /&gt;
* Gtk2&lt;br /&gt;
* Gtk3  (requires Sugar 0.96 or above to run the Activity you create)&lt;br /&gt;
* Sugargame   &lt;br /&gt;
* Web    (requires Sugar 0.100 or above to run the activity you create)&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity, this is safer than editing an existing Activity. You are offered 4 Activity templates, Gtk2, Gtk3, Sugargame and Web, some of these templates are not compatible with all Sugar versions, Gtk2 should be compatible.&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-helloworld.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Sugargame===&lt;br /&gt;
Sugargame, based on Pygame makes it easy to create games. See pygame.org&lt;br /&gt;
&lt;br /&gt;
To create a game, start a new Develop project but select Sugargame rather than Gtk2.&lt;br /&gt;
If you run the Activity created, it prints Hello World on a black background.&lt;br /&gt;
&lt;br /&gt;
Look at the file game.py, there are a number of simple changes you can make:&lt;br /&gt;
  BLANCO =(255, 255, 255)  #this sets the red, green and blue values for the white text&lt;br /&gt;
  NEGRO = (0, 0, 0) #this sets the R G B of the black background&lt;br /&gt;
  fuente = pygame.font.SysFont(None, 48) #48 is the text size&lt;br /&gt;
  texto = fuente.render(&#039;Hello world!&#039;, True, BLANCO, NEGRO)  # change Hello world&lt;br /&gt;
  pantalla.blit(texto, ((x / 2) - (x / 10), (y / 2) - (y / 10))) #the location on the screen&lt;br /&gt;
&lt;br /&gt;
Read the documentation at pygame.org, there are lots of exciting things to try. For example, change the line that starts with pantalla.blit to:&lt;br /&gt;
&lt;br /&gt;
  pantalla.blit(texto, pygame.mouse.get_pos())&lt;br /&gt;
&lt;br /&gt;
the text will follow the mouse. Or change this line to:&lt;br /&gt;
&lt;br /&gt;
  pygame.draw.circle(pantalla,BLANCO, pygame.mouse.get_pos(),20,0)&lt;br /&gt;
&lt;br /&gt;
and a circle follows the mouse.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
Pygame  http://www.pygame.org/docs&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92284</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92284"/>
		<updated>2014-03-28T09:59:51Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Sugargame */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample Hello World Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity, this is safer than editing an existing Activity. You are offered 4 Activity templates, Gtk2, Gtk3, Sugargame and Web, some of these templates are not compatible with all Sugar versions, Gtk2 should be compatible.&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-helloworld.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Sugargame===&lt;br /&gt;
Sugargame, based on Pygame makes it easy to create games. See pygame.org&lt;br /&gt;
&lt;br /&gt;
To create a game, start a new Develop project but select Sugargame rather than Gtk2.&lt;br /&gt;
If you run the Activity created, it prints Hello World on a black background.&lt;br /&gt;
&lt;br /&gt;
Look at the file game.py, there are a number of simple changes you can make:&lt;br /&gt;
  BLANCO =(255, 255, 255)  #this sets the red, green and blue values for the white text&lt;br /&gt;
  NEGRO = (0, 0, 0) #this sets the R G B of the black background&lt;br /&gt;
  fuente = pygame.font.SysFont(None, 48) #48 is the text size&lt;br /&gt;
  texto = fuente.render(&#039;Hello world!&#039;, True, BLANCO, NEGRO)  # change Hello world&lt;br /&gt;
  pantalla.blit(texto, ((x / 2) - (x / 10), (y / 2) - (y / 10))) #the location on the screen&lt;br /&gt;
&lt;br /&gt;
Read the documentation at pygame.org, there are lots of exciting things to try. For example, change the line that starts with pantalla.blit to:&lt;br /&gt;
&lt;br /&gt;
  pantalla.blit(texto, pygame.mouse.get_pos())&lt;br /&gt;
&lt;br /&gt;
the text will follow the mouse. Or change this line to:&lt;br /&gt;
&lt;br /&gt;
  pygame.draw.circle(pantalla,BLANCO, pygame.mouse.get_pos(),20,0)&lt;br /&gt;
&lt;br /&gt;
and a circle follows the mouse.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
Pygame  http://www.pygame.org/docs&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92283</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92283"/>
		<updated>2014-03-28T09:57:18Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Sugargame */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample Hello World Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity, this is safer than editing an existing Activity. You are offered 4 Activity templates, Gtk2, Gtk3, Sugargame and Web, some of these templates are not compatible with all Sugar versions, Gtk2 should be compatible.&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-helloworld.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Sugargame===&lt;br /&gt;
Sugargame, based on Pygame makes it easy to create games. See pygame.org&lt;br /&gt;
&lt;br /&gt;
To create a game, start a new Develop project but select Sugargame rather than Gtk2.&lt;br /&gt;
If you run the Activity created, it prints Hello World on a black background.&lt;br /&gt;
&lt;br /&gt;
Look at the file game.py, there are a number of simple changes you can make:&lt;br /&gt;
  BLANCO =(255, 255, 255)  #this sets the red, green and blue values for the white text&lt;br /&gt;
  NEGRO = (0, 0, 0) #this sets the R G B of the black background&lt;br /&gt;
  fuente = pygame.font.SysFont(None, 48) #48 is the text size&lt;br /&gt;
  texto = fuente.render(&#039;Hello world!&#039;, True, BLANCO, NEGRO)  # change Hello world&lt;br /&gt;
  pantalla.blit(texto, ((x / 2) - (x / 10), (y / 2) - (y / 10))) #the location on the screen&lt;br /&gt;
&lt;br /&gt;
Read the documentation at pygame.org, there are lots of exciting things to try. For example, change line 44 to:&lt;br /&gt;
&lt;br /&gt;
  pantalla.blit(texto, pygame.mouse.get_pos())&lt;br /&gt;
&lt;br /&gt;
the text will follow the mouse. Or change this line to:&lt;br /&gt;
&lt;br /&gt;
  pygame.draw.circle(pantalla,BLANCO, pygame.mouse.get_pos(),20,0)&lt;br /&gt;
&lt;br /&gt;
and a circle follows the mouse.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
Pygame  http://www.pygame.org/docs&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92282</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92282"/>
		<updated>2014-03-28T09:49:58Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Sugargame */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample Hello World Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity, this is safer than editing an existing Activity. You are offered 4 Activity templates, Gtk2, Gtk3, Sugargame and Web, some of these templates are not compatible with all Sugar versions, Gtk2 should be compatible.&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-helloworld.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Sugargame===&lt;br /&gt;
Sugargame, based on Pygame makes it easy to create games. See pygame.org&lt;br /&gt;
&lt;br /&gt;
To create a game, start a new Develop project but select Sugargame rather than Gtk2.&lt;br /&gt;
If you run the Activity created, it prints Hello World on a black background.&lt;br /&gt;
&lt;br /&gt;
Look at the file game.py, there are a number of simple changes you can make:&lt;br /&gt;
 9 BLANCO =(255, 255, 255)  #this sets the red, green and blue values for the white text&lt;br /&gt;
 10 NEGRO = (0, 0, 0) #this sets the R G B of the black background&lt;br /&gt;
 24 fuente = pygame.font.SysFont(None, 48) #48 is the text size&lt;br /&gt;
 44 pantalla.blit(texto, ((x / 2) - (x / 10), (y / 2) - (y / 10))) #the location on the screen&lt;br /&gt;
&lt;br /&gt;
Read the documentation at pygame.org, there are lots of exciting things to try. For example, change line 44 to:&lt;br /&gt;
&lt;br /&gt;
  pantalla.blit(texto, pygame.mouse.get_pos())&lt;br /&gt;
&lt;br /&gt;
the text will follow the mouse. Or change this line to:&lt;br /&gt;
&lt;br /&gt;
  pygame.draw.circle(pantalla,BLANCO, pygame.mouse.get_pos(),20,0)&lt;br /&gt;
&lt;br /&gt;
and a circle follows the mouse.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
Pygame  http://www.pygame.org/docs&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92281</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92281"/>
		<updated>2014-03-28T09:38:33Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Going further */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample Hello World Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity, this is safer than editing an existing Activity. You are offered 4 Activity templates, Gtk2, Gtk3, Sugargame and Web, some of these templates are not compatible with all Sugar versions, Gtk2 should be compatible.&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-helloworld.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Sugargame===&lt;br /&gt;
Sugargame, based on Pygame makes it easy to create games. See pygame.org&lt;br /&gt;
&lt;br /&gt;
To create a game, start a new Develop project but select Sugargame rather than Gtk2.&lt;br /&gt;
If you run the Activity created, it prints Hello World on a black background.&lt;br /&gt;
&lt;br /&gt;
Look at the file game.py, there are a number of simple changes you can make:&lt;br /&gt;
* 9 BLANCO =(255, 255, 255)  #this sets the red, green and blue values for the white text&lt;br /&gt;
*10 NEGRO = (0, 0, 0) #this sets the R G B of the black background&lt;br /&gt;
*24 fuente = pygame.font.SysFont(None, 48) #48 is the text size&lt;br /&gt;
*44 pantalla.blit(texto, ((x / 2) - (x / 10), (y / 2) - (y / 10))) #the location on the screen&lt;br /&gt;
&lt;br /&gt;
Read the documentation at pygame.org, there are lots of exciting things to try. For example, change line 44 to:&lt;br /&gt;
&lt;br /&gt;
  pantalla.blit(texto, pygame.mouse.get_pos())&lt;br /&gt;
&lt;br /&gt;
the text will follow the mouse. Or change this line to:&lt;br /&gt;
&lt;br /&gt;
  pygame.draw.circle(pantalla,BLANCO, pygame.mouse.get_pos(),20,0)&lt;br /&gt;
&lt;br /&gt;
and a circle follows the mouse.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
Pygame  http://www.pygame.org/docs&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92280</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92280"/>
		<updated>2014-03-28T09:35:57Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Going further */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample Hello World Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity, this is safer than editing an existing Activity. You are offered 4 Activity templates, Gtk2, Gtk3, Sugargame and Web, some of these templates are not compatible with all Sugar versions, Gtk2 should be compatible.&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-helloworld.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Sugargame===&lt;br /&gt;
Sugargame, based on Pygame makes it easy to create games. See pygame.org&lt;br /&gt;
&lt;br /&gt;
To create a game, start a new Develop project but select Sugargame rather than Gtk2.&lt;br /&gt;
If you run the Activity created, it prints Hello World on a black background.&lt;br /&gt;
&lt;br /&gt;
Look at the file game.py, there are a number of simple changes you can make:&lt;br /&gt;
* 9 BLANCO =(255, 255, 255)  #this sets the red, green and blue values for the white text&lt;br /&gt;
*10 NEGRO = (0, 0, 0) #this sets the R G B of the black background&lt;br /&gt;
*24 fuente = pygame.font.SysFont(None, 48) #48 is the text size&lt;br /&gt;
*44 pantalla.blit(texto, ((x / 2) - (x / 10), (y / 2) - (y / 10))) #the location on the screen&lt;br /&gt;
&lt;br /&gt;
Read the documentation at pygame.org, there are lots of exciting things to try. For example, change line 44 to:&lt;br /&gt;
&lt;br /&gt;
  pantalla.blit(texto, pygame.mouse.get_pos())&lt;br /&gt;
&lt;br /&gt;
the text will follow the mouse. Or change this line to:&lt;br /&gt;
&lt;br /&gt;
  pygame.draw.circle(pantalla,BLANCO, pygame.mouse.get_pos(),20,0)&lt;br /&gt;
&lt;br /&gt;
and a circle follows the mouse.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
Pygame  www.pygame.org/docs&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92279</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92279"/>
		<updated>2014-03-28T09:32:22Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Sugargame */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample Hello World Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity, this is safer than editing an existing Activity. You are offered 4 Activity templates, Gtk2, Gtk3, Sugargame and Web, some of these templates are not compatible with all Sugar versions, Gtk2 should be compatible.&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-helloworld.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Sugargame===&lt;br /&gt;
Sugargame, based on Pygame makes it easy to create games. See pygame.org&lt;br /&gt;
&lt;br /&gt;
To create a game, start a new Develop project but select Sugargame rather than Gtk2.&lt;br /&gt;
If you run the Activity created, it prints Hello World on a black background.&lt;br /&gt;
&lt;br /&gt;
Look at the file game.py, there are a number of simple changes you can make:&lt;br /&gt;
* 9 BLANCO =(255, 255, 255)  #this sets the red, green and blue values for the white text&lt;br /&gt;
*10 NEGRO = (0, 0, 0) #this sets the R G B of the black background&lt;br /&gt;
*24 fuente = pygame.font.SysFont(None, 48) #48 is the text size&lt;br /&gt;
*44 pantalla.blit(texto, ((x / 2) - (x / 10), (y / 2) - (y / 10))) #the location on the screen&lt;br /&gt;
&lt;br /&gt;
Read the documentation at pygame.org, there are lots of exciting things to try. For example, change line 44 to:&lt;br /&gt;
&lt;br /&gt;
  pantalla.blit(texto, pygame.mouse.get_pos())&lt;br /&gt;
&lt;br /&gt;
the text will follow the mouse. Or change this line to:&lt;br /&gt;
&lt;br /&gt;
  pygame.draw.circle(pantalla,BLANCO, pygame.mouse.get_pos(),20,0)&lt;br /&gt;
&lt;br /&gt;
and a circle follows the mouse.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92278</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92278"/>
		<updated>2014-03-28T08:16:09Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Sugargame */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample Hello World Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity, this is safer than editing an existing Activity. You are offered 4 Activity templates, Gtk2, Gtk3, Sugargame and Web, some of these templates are not compatible with all Sugar versions, Gtk2 should be compatible.&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-helloworld.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Sugargame===&lt;br /&gt;
Sugargame, based on Pygame makes it easy to create games. See pygame.org&lt;br /&gt;
&lt;br /&gt;
To create a game, start a new Develop project but select Sugargame rather than Gtk2.&lt;br /&gt;
If you run the Activity created, it prints Hello World on a black background.&lt;br /&gt;
&lt;br /&gt;
Look at the file game.py, there are a number of simple changes you can make:&lt;br /&gt;
* 9 BLANCO =(255, 255, 255)  #this sets the red, green and blue values for the white text&lt;br /&gt;
*10 NEGRO = (0, 0, 0) #this sets the R G B of the black background&lt;br /&gt;
*24 fuente = pygame.font.SysFont(None, 48) #48 is the text size&lt;br /&gt;
*44 pantalla.blit(texto, ((x / 2) - (x / 10), (y / 2) - (y / 10))) #the location on the screen&lt;br /&gt;
&lt;br /&gt;
Read the documentation at pygame.org, there are lots of exciting things to try. For example, change line 44 to:&lt;br /&gt;
&lt;br /&gt;
  pantalla.blit(texto, pygame.mouse.get_pos())&lt;br /&gt;
&lt;br /&gt;
the text will follow the mouse.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92277</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92277"/>
		<updated>2014-03-28T06:41:58Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Sugargame */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample Hello World Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity, this is safer than editing an existing Activity. You are offered 4 Activity templates, Gtk2, Gtk3, Sugargame and Web, some of these templates are not compatible with all Sugar versions, Gtk2 should be compatible.&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-helloworld.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Sugargame===&lt;br /&gt;
Sugargame, based on Pygame makes it easy to create games. See pygame.org&lt;br /&gt;
&lt;br /&gt;
To create a game, start a new Develop project but select Sugargame rather than Gtk2.&lt;br /&gt;
If you run the Activity created, it prints Hello World on a black background.&lt;br /&gt;
&lt;br /&gt;
Look at the file game.py, there are a number of simple changes you can make:&lt;br /&gt;
* 9 BLANCO =(255, 255, 255)  #this sets the red, green and blue values for the white text&lt;br /&gt;
*10 NEGRO = (0, 0, 0) #this sets the R G B of the black background&lt;br /&gt;
*24 fuente = pygame.font.SysFont(None, 48) #48 is the text size&lt;br /&gt;
*44 pantalla.blit(texto, ((x / 2) - (x / 10), (y / 2) - (y / 10))) #the location on the screen&lt;br /&gt;
&lt;br /&gt;
Read the documentation at pygame.org, there are lots of exciting things to try.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92276</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92276"/>
		<updated>2014-03-28T06:26:21Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Going further */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample Hello World Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity, this is safer than editing an existing Activity. You are offered 4 Activity templates, Gtk2, Gtk3, Sugargame and Web, some of these templates are not compatible with all Sugar versions, Gtk2 should be compatible.&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-helloworld.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Sugargame===&lt;br /&gt;
Sugargame, based on Pygame makes it easy to create games. See pygame.org&lt;br /&gt;
&lt;br /&gt;
To create a game, start a new Develop project but select Sugargame rather than Gtk2.&lt;br /&gt;
If you run the Activity created, it prints Hello World on a black background.&lt;br /&gt;
&lt;br /&gt;
Look at the file game.py, there are a number of simple changes you can make&lt;br /&gt;
* 9 BLANCO =(255, 255, 255)  #this sets the red, green and blue values for the white text&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92275</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92275"/>
		<updated>2014-03-28T06:12:29Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Tutorial - creating your Activity */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample Hello World Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity, this is safer than editing an existing Activity. You are offered 4 Activity templates, Gtk2, Gtk3, Sugargame and Web, some of these templates are not compatible with all Sugar versions, Gtk2 should be compatible.&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-helloworld.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92268</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92268"/>
		<updated>2014-03-27T11:19:16Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Editing your Activity */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample Hello World Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-helloworld.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=File:Develop-helloworld.jpg&amp;diff=92267</id>
		<title>File:Develop-helloworld.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=File:Develop-helloworld.jpg&amp;diff=92267"/>
		<updated>2014-03-27T11:18:17Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92266</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92266"/>
		<updated>2014-03-27T11:08:54Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Tutorial - creating your Activity */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample Hello World Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
===Editing your Activity===&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92265</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92265"/>
		<updated>2014-03-27T08:26:43Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Using the Log files to find errors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample Hello World Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. &lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92264</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92264"/>
		<updated>2014-03-27T08:26:11Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Using the Log files to find errors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample Hello World Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. The Log Activity is a viewer for these files.&lt;br /&gt;
&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Log&amp;diff=92263</id>
		<title>Activities/Log</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Log&amp;diff=92263"/>
		<updated>2014-03-27T08:24:14Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
http://wiki.laptop.org/images/thumb/b/b5/Activity-log.svg/55px-Activity-log.svg.png&lt;br /&gt;
&lt;br /&gt;
Log files are created when Activities run, they also are created by other processes. They list software errors, among other data, and can help diagnose software problems. The Log Activity is a viewer for these files.&lt;br /&gt;
&lt;br /&gt;
* [http://activities.sugarlabs.org/en-US/sugar/addon/4056 Activity Library]&lt;br /&gt;
* [https://git.sugarlabs.org/log Source]&lt;br /&gt;
* [http://download.sugarlabs.org/activities/4056/ Versions]&lt;br /&gt;
* for a guide to using Log to find errors see [[Activities/Develop#Using_the_Log_files_to_find_errors]]&lt;br /&gt;
Bug tickets: [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;component=Log&amp;amp;groupdesc=1&amp;amp;group=resolution&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=time&amp;amp;col=changetime&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;order=priority Sugar Labs], [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=resolution&amp;amp;max=150&amp;amp;component=log-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime OLPC]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92262</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92262"/>
		<updated>2014-03-27T08:13:45Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Using the Log files to find errors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample Hello World Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , in the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line (EOL) while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Log&amp;diff=92261</id>
		<title>Activities/Log</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Log&amp;diff=92261"/>
		<updated>2014-03-27T08:12:24Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
http://wiki.laptop.org/images/thumb/b/b5/Activity-log.svg/55px-Activity-log.svg.png&lt;br /&gt;
&lt;br /&gt;
* [http://activities.sugarlabs.org/en-US/sugar/addon/4056 Activity Library]&lt;br /&gt;
* [https://git.sugarlabs.org/log Source]&lt;br /&gt;
* [http://download.sugarlabs.org/activities/4056/ Versions]&lt;br /&gt;
* for a guide to using Log to find errors see [[Activities/Develop#Using_the_Log_files_to_find_errors]]&lt;br /&gt;
Bug tickets: [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;component=Log&amp;amp;groupdesc=1&amp;amp;group=resolution&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=time&amp;amp;col=changetime&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;order=priority Sugar Labs], [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=resolution&amp;amp;max=150&amp;amp;component=log-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime OLPC]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92260</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92260"/>
		<updated>2014-03-27T08:08:42Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Using the Log files to find errors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample Hello World Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , In the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line EOL while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
The Log Activity [[Activities/Log]] can also be used to view log files.&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92259</id>
		<title>Activities/Develop</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activities/Develop&amp;diff=92259"/>
		<updated>2014-03-27T07:47:31Z</updated>

		<summary type="html">&lt;p&gt;Tonyforster: /* Using the Log files to find errors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Activities|Develop]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Download from http://activities.sugarlabs.org/en-US/sugar/addon/4058 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==About Develop==&lt;br /&gt;
Develop allows you to edit existing Activities or create new ones. It allows the viewing and editing of multiple files and gives easy access to error logs. It includes templates for a number of sample Hello World Activities.&lt;br /&gt;
&lt;br /&gt;
You get the screen below the first time you start Develop and every time you Start New but not if you resume a project. It gives the option of editing an existing Activity or creating a new one from a &amp;quot;Hello World!&amp;quot; template. It is recommended that beginners create a new Activity.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop open screen.jpeg]]&lt;br /&gt;
&lt;br /&gt;
The main screen is shown below. In this case, a new Activity called testgtk2 has been created from the gtk2 template. The left pane shows the files and directories that comprise the Activity and the right pane shows the contents of its main file, activity.py&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot of Develop testgtk2 .png | 600px]]&lt;br /&gt;
&lt;br /&gt;
From left to right, the toolbar buttons have the following functions&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Home&#039;&#039;&#039;&lt;br /&gt;
* the title of the project&lt;br /&gt;
* edit the Journal description&lt;br /&gt;
* sharing (disabled)&lt;br /&gt;
* create a bundle, use the bundle to install your Activity on other laptops&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit&#039;&#039;&#039;&lt;br /&gt;
* copy&lt;br /&gt;
* paste&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show source&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the files and directories that comprise your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show  file symbols&#039;&#039;&#039;&lt;br /&gt;
* the left hand pane shows the classes, functions and variables in the file on the right&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show log files&#039;&#039;&#039;&lt;br /&gt;
* shows the log files which contain error messages from running your Activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an empty file&#039;&#039;&#039;&lt;br /&gt;
* your Activity already comprises a number of files, this adds an additional empty file&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove file&#039;&#039;&#039;&lt;br /&gt;
* deletes the most recently viewed file, the one displayed in the right pane&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run activity&#039;&#039;&#039;&lt;br /&gt;
* runs your activity&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stop&#039;&#039;&#039;&lt;br /&gt;
* quits the Develop Activity&lt;br /&gt;
&lt;br /&gt;
==Tutorial - creating your Activity==&lt;br /&gt;
Open Develop, start new&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-start-new.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Create a new Activity&lt;br /&gt;
&lt;br /&gt;
Select the type Gtk2&lt;br /&gt;
&lt;br /&gt;
Name the Activity testgtk2&lt;br /&gt;
&lt;br /&gt;
Start&lt;br /&gt;
&lt;br /&gt;
Press the Run activity button on the toolbar, your testgtk2 Activity will run, it prints Hello World!. (If you look at your Home screen you have a new Activity called testgtk2.)&lt;br /&gt;
&lt;br /&gt;
Stop testgtk2 and return to Develop. Edit line 70 of activity.py, &amp;quot;Hello World!&amp;quot;, change this text but be careful only to change the text within the quotation marks. Press the Run activity button, the Activity now displays the new text.&lt;br /&gt;
&lt;br /&gt;
===Changing the icon===&lt;br /&gt;
Shown in the left hand pane is the directory activity with a triangle next to it pointing right. Click on it to see its contents, open activity-helloworld.svg&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-left-pane.jpg]]&lt;br /&gt;
&lt;br /&gt;
Line 11 defines the circle of the world in the icon. Change stroke-width to &amp;quot;6.5&amp;quot;. You need to restart the laptop to see the changes, the circle is now thicker. [[File:Altered-icon.jpg|50px]]&lt;br /&gt;
&lt;br /&gt;
===Changing the version number===&lt;br /&gt;
The Home view, List view shows the version number of all the installed Activities. The version number discriminates between older and newer versions of an Activity. It is used to tell if you are using the latest version. Sometimes the latest version has a bug and you want to go back to an earlier known good version.&lt;br /&gt;
&lt;br /&gt;
Look in your Home view List view and you will see that testgtk2 is version 1. To alter the version number, edit activity.info line 6 which shows the activity_version=1 , change it to 2.&lt;br /&gt;
&lt;br /&gt;
You may need to restart the laptop to see the changes.&lt;br /&gt;
&lt;br /&gt;
[[File:Version-number.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Installing your Activity on another computer===&lt;br /&gt;
Press the Create bundle button on the home toolbar[[File:Save-bundle.jpg]], this creates a .xo bundle in the Journal. Copy this to another laptop to install your Activity.&lt;br /&gt;
&lt;br /&gt;
===Using the Log files to find errors===&lt;br /&gt;
Assume you made a typing error, you accidentally deleted the closing quote mark &amp;quot; in activity.py line 70 when you were editing &amp;quot;Hello World!&amp;quot;. The activity would not run, you might get an error like this:[[File:Failedtostart.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on the Show log files button [[File:Show-logfiles.jpg]] , the left hand pane will show the list of logfiles. Because our Activity is named testgtk2, we are looking for the file org.sugarlabs.testgtk2. If you have started testgtk2 multiple times then there are multiple logfiles. Click on org.sugarlabs.testgtk to read the logfile. The error message tells that it is line 70 of activity.py , In the string &amp;quot;Hello World!, it got confused at the opening quote. It got to the end of line EOL while scanning the string.&lt;br /&gt;
&lt;br /&gt;
[[File:Develop-logfiles.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Going further===&lt;br /&gt;
For more on making Sugar Activities see the ebook http://en.flossmanuals.net/make-your-own-sugar-activities/ &lt;br /&gt;
&lt;br /&gt;
For editing icons use Inkscape http://www.inkscape.org&lt;br /&gt;
&lt;br /&gt;
==Videos==&lt;br /&gt;
This video shows a very early version of Develop:&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know much about this activity but here&#039;s my over the shoulder view of the activity: http://www.youtube.com/watch?v=dmXDw-Z2CSI --[[User:Dennis Daniels|Dennis Daniels]] 17:33, 10 September 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
* Trac Tickets: [http://dev.laptop.org/query?status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;max=150&amp;amp;component=develop-activity&amp;amp;order=id&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=next_action&amp;amp;col=changetime OLPC] [http://bugs.sugarlabs.org/query?status=accepted&amp;amp;status=assigned&amp;amp;status=closed&amp;amp;status=new&amp;amp;status=reopened&amp;amp;groupdesc=1&amp;amp;group=milestone&amp;amp;component=Develop&amp;amp;order=priority&amp;amp;col=id&amp;amp;col=summary&amp;amp;col=status&amp;amp;col=owner&amp;amp;col=type&amp;amp;col=priority&amp;amp;col=version&amp;amp;col=severity&amp;amp;col=resolution&amp;amp;col=status_field&amp;amp;col=reporter&amp;amp;col=time&amp;amp;col=changetime Sugar Labs]&lt;/div&gt;</summary>
		<author><name>Tonyforster</name></author>
	</entry>
</feed>