Hello All,<br><br>As many of you know, I'm writing up a sugar almanac to help new sugar/python developers get up and running with creating useful activities. I will try to send frequent updates in terms of what has been added. In addition to using the documentation, I'd appreciate it if people familiar with the different modules I am writing can send any better or alternative code examples to the ones that I have written. Review and feedback is ALWAYS appreciated.<br>
<br>This week, I have updated the section on how to do many of the basic activity creation tasks (see <a href="http://wiki.laptop.org/go/Sugar.activity.activity">http://wiki.laptop.org/go/Sugar.activity.activity</a>). In addition, I've provided some basic examples of how to read and write your activity to the datastore so that it can be resumed later from the journal. Below is a list of the different how to's contained in this section of the almanac. Hope some of these ring a bell in terms of what you all are trying to get done!<br>
<ul><li class="toclevel-1"><a href="http://wiki.laptop.org/go/Sugar.activity.activity#Helper_Functions_in_sugar.activity.activity"><span class="tocnumber">1</span> <span class="toctext">Helper Functions in sugar.activity.activity</span></a>
<ul><li class="toclevel-2"><a href="http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_get_the_file_path_for_my_activity_bundle.3F"><span class="tocnumber">1.1</span> <span class="toctext">How do I get the file path for my activity bundle?</span></a></li>
<li class="toclevel-2"><a href="http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_get_the_file_path_where_I_can_write_files_programmatically.3F"><span class="tocnumber">1.2</span> <span class="toctext">How do I get the file path where I can write files programmatically?</span></a></li>
<li class="toclevel-2"><a href="http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_get_the_name_of_my_activity.3F"><span class="tocnumber">1.3</span> <span class="toctext">How do I get the name of my activity?</span></a></li>
</ul>
</li><li class="toclevel-1"><a href="http://wiki.laptop.org/go/Sugar.activity.activity#Class:_Activity"><span class="tocnumber">2</span> <span class="toctext">Class: Activity</span></a>
<ul><li class="toclevel-2"><a href="http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_set_the_canvas_.28main_work_area.29_of_my_activity_to_a_specific_UI_widget.3F"><span class="tocnumber">2.1</span> <span class="toctext">How do I set the canvas (main work area) of my activity to a specific UI widget?</span></a></li>
<li class="toclevel-2"><a href="http://wiki.laptop.org/go/Sugar.activity.activity#What_are_activity_id.27s.3F_How_do_I_obtain_the_activity_id_for_an_instance_of_my_activity.3F"><span class="tocnumber">2.2</span> <span class="toctext">What are activity id's? How do I obtain the activity id for an instance of my activity?</span></a></li>
<li class="toclevel-2"><a href="http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_create_a_new_activity_that_is_derived_from_the_base_Activity_class.3F"><span class="tocnumber">2.3</span> <span class="toctext">How do I create a new activity that is derived from the base Activity class?</span></a></li>
<li class="toclevel-2"><a href="http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_implement_a_write_file_method_for_my_activity_in_order_to_persist_my_activity_in_the_journal.3F"><span class="tocnumber">2.4</span> <span class="toctext">How do I implement a write_file method for my activity in order to persist my activity in the journal?</span></a></li>
<li class="toclevel-2"><a href="http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_implement_a_read_file_method_for_my_activity_so_that_I_can_resume_activities_from_the_sugar_journal.3F"><span class="tocnumber">2.5</span> <span class="toctext">How do I implement a read_file method for my activity so that I can resume activities from the sugar journal?</span></a></li>
</ul>
</li><li class="toclevel-1"><a href="http://wiki.laptop.org/go/Sugar.activity.activity#Class:_ActivityToolbox_.28Toolbox.29"><span class="tocnumber">3</span> <span class="toctext">Class: ActivityToolbox (Toolbox)</span></a>
<ul><li class="toclevel-2"><a href="http://wiki.laptop.org/go/Sugar.activity.activity#What_is_the_standard_toolbox_needed_in_most_activities_and_how_do_I_create_it.3F"><span class="tocnumber">3.1</span> <span class="toctext">What is the standard toolbox needed in most activities and how do I create it?</span></a></li>
<li class="toclevel-2"><a href="http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_get_a_handle_on_the_standard_activity_toolbar_given_an_ActivityToolbox_object.3F"><span class="tocnumber">3.2</span> <span class="toctext">How do I get a handle on the standard activity toolbar given an ActivityToolbox object?</span></a></li>
</ul>
</li><li class="toclevel-1"><a href="http://wiki.laptop.org/go/Sugar.activity.activity#Class:_ActivityToolbar_.28gtk.Toolbar.29"><span class="tocnumber">4</span> <span class="toctext">Class: ActivityToolbar (gtk.Toolbar)</span></a></li>
<li class="toclevel-1"><a href="http://wiki.laptop.org/go/Sugar.activity.activity#Class:_EditToolbar_.28gtk.Toolbar.29"><span class="tocnumber">5</span> <span class="toctext">Class: EditToolbar (gtk.Toolbar)</span></a>
<ul><li class="toclevel-2"><a href="http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_add_a_standard_edit_toolbar_to_my_activity.3F"><span class="tocnumber">5.1</span> <span class="toctext">How do I add a standard edit toolbar to my activity?</span></a></li>
<li class="toclevel-2"><a href="http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_hide_a_button_in_the_edit_toolbar_that_is_not_needed_in_my_activity.3F"><span class="tocnumber">5.2</span> <span class="toctext">How do I hide a button in the edit toolbar that is not needed in my activity?</span></a></li>
<li class="toclevel-2"><a href="http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_disable_and_enable_a_button_on_the_edit_toolbar.3F"><span class="tocnumber">5.3</span> <span class="toctext">How do I disable and enable a button on the edit toolbar?</span></a></li>
</ul>
</li></ul><br>You can also find the homepage for the documentation at <a href="http://wiki.laptop.org/go/Sugar-api-doc">http://wiki.laptop.org/go/Sugar-api-doc</a>. <br><br><br>Best,<br><br><br>Faisal<br>