<div dir="ltr">Lam,<div><br></div><div>Glad you like the book. I would point out that the chapter on version control needs updating. While <a href="http://git.sugarlabs.org" target="_blank">git.sugarlabs.org</a> still exists, the official place to put code for Sugar Labs is in Github, under the sugarlabs organization. </div><div><br></div><div>Like this:</div><div><br></div><div><a href="https://github.com/sugarlabs/readetexts">https://github.com/sugarlabs/readetexts</a><br></div><div><br></div><div>Other than that you should be OK.</div><div><br></div><div>James Simmons</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 8, 2017 at 10:17 AM, Nguyen, Lam <span dir="ltr"><<a href="mailto:nguyenla@dickinson.edu" target="_blank">nguyenla@dickinson.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_8384304128055727141divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>Thank you for the responses. James Simmon's book looks especially interesting. We will look into the approaches suggested. Meanwhile, we welcome any further suggestion that could help us with this process.</p>
<p><br>
</p>
<p>Best regards,</p>
<p>Lam Nguyen</p>
<br>
<div style="color:rgb(0,0,0)">
<div>
<hr style="display:inline-block;width:98%">
<div id="m_8384304128055727141x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Sugar-devel <<a href="mailto:sugar-devel-bounces@lists.sugarlabs.org" target="_blank">sugar-devel-bounces@lists.<wbr>sugarlabs.org</a>> on behalf of Tony Anderson <<a href="mailto:tony_anderson@usa.net" target="_blank">tony_anderson@usa.net</a>><br>
<b>Sent:</b> Tuesday, March 7, 2017 19:20<br>
<b>To:</b> <a href="mailto:sugar-devel@lists.sugarlabs.org" target="_blank">sugar-devel@lists.sugarlabs.<wbr>org</a><br>
<b>Subject:</b> Re: [Sugar-devel] Question about Sugarizing a Python program</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div class="m_8384304128055727141PlainText"><div><div class="h5">I have good luck with two methods. One is to download helloworld-6.xo.
<br>
It is actually a zip file and so can be unzipped.<br>
<br>
The pertinent information is given in the <a href="http://activity.info" target="_blank">activity.info</a> file. Change all <br>
references to HelloWorld to your name for the activity.<br>
<br>
A Sugar activity wants an svg icon to show on the Home view. So <br>
substitute your icon for the one in the activity folder.<br>
<br>
The program is in directory activity.py as a python class. Change the <br>
class name to match the exec line in <a href="http://activity.info" target="_blank">activity.info</a>.<br>
<br>
Usually what I do is make a bundle with python setup.py dist_xo (reset <br>
version in <a href="http://activity.info" target="_blank">activity.info</a> to 1 first). This bundle can be installed by<br>
sugar-install-bundle hello-6.xo (substitute name of your bundle - e.g. <br>
spell-1.xo).<br>
<br>
Now launching the activity should show hello world to show that your <br>
changes have created a working activity.<br>
<br>
Now all that should be needed is to modify the activity to invoke your <br>
code. Note that you need much of the existing code to set up the Sugar <br>
toolbar. So I generally modify the code at the point that it provides a <br>
Gtk.Label('Hello World').<br>
<br>
The other approach is to use pippy.py. Copy and paste your code into the <br>
text area. Now execute the code with pippy run to verify that it is <br>
working there.<br>
Then you can export as a bundle (activity toolbar).<br>
<br>
I fully endorse Sebastian's recommendation of James Simmons text. This <br>
will help with any problems you may encounter.<br>
<br>
Tony<br>
<br>
On 03/08/2017 04:53 AM, Sebastian Silva wrote:<br>
><br>
> On 07/03/17 15:47, Sebastian Silva wrote:<br>
>> Also, don't miss the excellent "Make Your Own Sugar Activities" by<br>
>> James Simmons:<br>
>><br>
>> <a href="http://write.flossmanuals.net/make-your-own-sugar-activities/introduction/" id="m_8384304128055727141LPlnk39632" target="_blank">
http://write.flossmanuals.net/<wbr>make-your-own-sugar-<wbr>activities/introduction/</a><br>
>><br>
> specifically the chapter:<br>
><br>
> <a href="http://write.flossmanuals.net/make-your-own-sugar-activities/making-activities-using-pygame/" id="m_8384304128055727141LPlnk195671" target="_blank">
http://write.flossmanuals.net/<wbr>make-your-own-sugar-<wbr>activities/making-activities-<wbr>using-pygame/</a><br>
> ______________________________<wbr>_________________<br>
> Sugar-devel mailing list<br>
> <a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.<wbr>org</a><br>
> <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" id="m_8384304128055727141LPlnk473274" target="_blank">
http://lists.sugarlabs.org/<wbr>listinfo/sugar-devel</a><br>
<br>
______________________________<wbr>_________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.<wbr>org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" id="m_8384304128055727141LPlnk738328" target="_blank">http://lists.sugarlabs.org/<wbr>listinfo/sugar-devel</a>
</div></div><div id="m_8384304128055727141LPBorder_GT_14889894579880.2511009245227025" style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table id="m_8384304128055727141LPContainer_14889894579850.9508533999350497" cellspacing="0" style="width:90%;overflow:auto;padding-top:20px;padding-bottom:20px;margin-top:20px;border-top-width:1px;border-top-style:dotted;border-top-color:rgb(200,200,200);border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(200,200,200);background-color:rgb(255,255,255)">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td id="m_8384304128055727141TextCell_14889894579860.5210150251467367" colspan="2" style="vertical-align:top;padding:0px;display:table-cell">
<div id="m_8384304128055727141LPRemovePreviewContainer_14889894579860.9137155594822326"></div>
<div id="m_8384304128055727141LPTitle_14889894579860.5611722647684871" style="color:rgb(0,0,0);font-weight:normal;font-size:21px;font-family:wf_segoe-ui_light,"Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;line-height:21px">
<a id="m_8384304128055727141LPUrlAnchor_14889894579870.6254273713812346" href="http://lists.sugarlabs.org/listinfo/sugar-devel" style="text-decoration:none" target="_blank">Sugar-devel Info Page</a></div>
<div id="m_8384304128055727141LPMetadata_14889894579870.027327782581775262" style="margin:10px 0px 16px;color:rgb(102,102,102);font-weight:normal;font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;line-height:14px">
<a href="http://lists.sugarlabs.org" target="_blank">lists.sugarlabs.org</a></div>
<div id="m_8384304128055727141LPDescription_14889894579870.48032177832527445" style="display:block;color:rgb(102,102,102);font-weight:normal;font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;line-height:20px;max-height:100px;overflow:hidden">
Sugar-devel -- Discussion of Sugar development and other technical matters. About Sugar-devel</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
</div>
</span></font></div>
</div>
</div>
<br>______________________________<wbr>_________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.<wbr>org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/<wbr>listinfo/sugar-devel</a><br>
<br></blockquote></div><br></div>