[sugar] Recent Updates to Sugar Almanac
Martin Sevior
martines
Fri Jun 13 22:31:56 EDT 2008
Hi Faisal,
You might want to gather together the documentation we wrote
for abiwidget which explains how to embed the collaborative Rich Text
widget (as used by write) in python programs.
The links are on our wiki here:
http://www.abisource.com/wiki/AbiWidget
http://www.abisource.com/wiki/PyAbiWord
Cheers
Martin
On Fri, 2008-06-13 at 17:34 -0400, Faisal Anwar wrote:
> Hello All,
>
> 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.
>
> This week, I have updated the section on how to do many of the basic
> activity creation tasks (see
> http://wiki.laptop.org/go/Sugar.activity.activity). 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!
> * 1 Helper Functions in sugar.activity.activity
> * 1.1 How do I get the file path for my activity bundle?
> * 1.2 How do I get the file path where I can write files
> programmatically?
> * 1.3 How do I get the name of my activity?
> * 2 Class: Activity
> * 2.1 How do I set the canvas (main work area) of my
> activity to a specific UI widget?
> * 2.2 What are activity id's? How do I obtain the
> activity id for an instance of my activity?
> * 2.3 How do I create a new activity that is derived
> from the base Activity class?
> * 2.4 How do I implement a write_file method for my
> activity in order to persist my activity in the
> journal?
> * 2.5 How do I implement a read_file method for my
> activity so that I can resume activities from the
> sugar journal?
> * 3 Class: ActivityToolbox (Toolbox)
> * 3.1 What is the standard toolbox needed in most
> activities and how do I create it?
> * 3.2 How do I get a handle on the standard activity
> toolbar given an ActivityToolbox object?
> * 4 Class: ActivityToolbar (gtk.Toolbar)
> * 5 Class: EditToolbar (gtk.Toolbar)
> * 5.1 How do I add a standard edit toolbar to my
> activity?
> * 5.2 How do I hide a button in the edit toolbar that is
> not needed in my activity?
> * 5.3 How do I disable and enable a button on the edit
> toolbar?
>
> You can also find the homepage for the documentation at
> http://wiki.laptop.org/go/Sugar-api-doc.
>
>
> Best,
>
>
> Faisal
> _______________________________________________
> Sugar mailing list
> Sugar at lists.laptop.org
> http://lists.laptop.org/listinfo/sugar
More information about the Sugar-devel
mailing list