[Sugar-devel] Question about installing an activity on XO laptop

Heang EANG eheang at yahoo.com
Fri Dec 5 00:20:32 EST 2008


Hi,
 
I am an international student from Cambodia. Recently, I have been working on an activity which I called "Five in a Row" for the XO laptop. I am new to Python, so the codes look pretty simple and are not perfect yet. I know I could have built the activity in PyGame. Anyway, I use PyGTK to work on this project. However, I am running into a program when trying to install my activity on the XO laptop. I believe there are three important files needed for the installation of the activity, including activity.info, setup.py, and the activity.py files. I am not sure if I code something wrong in any of those files; however, after installing it, when I try to run the activity, it never loads the activity up, and it keeps saying "starting", but nothing comes up. Could anyone please take some time to look at my codes below and give me some ideas. I would appreciate it very much. Here are my codes:
 
[fiveinarowActivity.py] is attached with this email.
[setup.py]:
 
from sugar.activity import bundlebuilder
bundlebuilder.start('fiveinarowActivity')
 
[activity.info]:
[Activity]
name = fiveinarowActivity
bundle_id = org.laptop.fiveinarowActivity
class = fiveinarowActivity.fiveinarowActivity
icon = activity-fiveinarow
activity_version = 1
host_version = 1
show_launcher = yes
 
Thank you all very much,
 
Heang Sok,
 
 


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sugarlabs.org/archive/sugar-devel/attachments/20081204/8675f4d3/attachment-0001.htm 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fiveinarowActivity.py
Url: http://lists.sugarlabs.org/archive/sugar-devel/attachments/20081204/8675f4d3/attachment-0001.txt 


More information about the Sugar-devel mailing list