Monday, April 4, 2011

Activity Progress

More activity progress:

I'm still trying to get the Activity to work within the Sugar Environment.  On Thursday, I continued following this guide to help me "Sugarize" our pygtk application into a Sugar Activity.  I've gotten the activity to show up in the Activity list (within the OS), but when I launch it, it doesn't display properly.

Megan was using this guide to try and "Sugarize" our activity.  This guide shows major differences in code when converting from a PyGTK application to a "Sugarized" version.  We printed out the code to compare the major differences:

PyGTK Version:


class ReadEtexts():
def main(self, file_path):


Sugar Version:

from sugar.activity import activity
from sugar.graphics import style
class ReadEtextsActivity(activity.Activity):

I think I've made all the differences necessary to "Sugarize" Nutri (the current name given to our Activity).  However, it still doesn't seem to give me any positive result.  Unfortunately, it doesn't seem like Sugar has any form of Debug mode (or even a way for me to know what error is occurring when the Activity launches), it simply says that the Activity failed to start.  I'll keep looking into why this isn't working.  Luckily, I think we're a bit a head of the game anyways, so we have time to work this out.  If I don't get passed this issue by tomorrow, I'll pop my head into the IRC chat and see if anyone can offer some help.


No comments:

Post a Comment