[Sugar-devel] The best place to learn interaction with the olpc journal ?
nicestep at gmail.com
Tue Jun 21 14:31:23 EDT 2011
I thought I had covered what you need to know in MYOSA, but if it
wasn't clear all you need to do to load a drawing that you created in
your Activity is implement the
def read_file(self, file_path):
method. That gets executed when your Activity gets loaded, and
file_path will contain the data from your Journal entry. You can also
read metadata from the Journal entry here.
When you close your Activity then the
def write_file(self, filename):
will save your drawing file as a Journal entry. The write_file()
method is also the place where you can set up metadata for your
write_file() is also invoked when you switch the focus away from your Activity.
That is all most Activities will ever need to do, but if you want to
do more the chapter "Fun With The Journal" will give you the details.
If there are features you need to know about that I didn't cover could
you let me know what they are?
On Tue, Jun 21, 2011 at 12:59 PM, laurent bernabe
<laurent.bernabe at gmail.com> wrote:
> Hello everyone,
> I just would like to know where is the best place to learn interaction with
> Sugar OLPC journal ?
> Because I think that I've not yet well understand the concept, for my
> project LearningWriting.
> I've read the tutorial
> http://en.flossmanuals.net/make-your-own-sugar-activities/, but it does not
> seem to cover all features.
> (I need to save my drawings and put them back in my application)
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
More information about the Sugar-devel