Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Application development for the OLPC laptop

Program an activity for the XO-1 using Python

M. Tim Jones, Consultant Engineer, Emulex Corp.
M. Tim Jones
M. Tim Jones is an embedded software engineer and the author of GNU/Linux Application Programming, AI Application Programming (now in its second edition), and BSD Sockets Programming from a Multilanguage Perspective. His engineering background ranges from the development of kernels for geosynchronous spacecraft to embedded systems architecture and networking protocols development. Tim is a Consultant Engineer for Emulex Corp. in Longmont, Colorado.
(An IBM developerWorks Contributing Author)

Summary:  The XO laptop (of the One-Laptop-Per-Child initiative) is an inexpensive laptop project intended to help educate children around the world. The laptop includes many innovations, such as a novel, inexpensive, and durable hardware design and the use of GNU/Linux® as the underlying operating system. The XO also includes an application environment written in Python with a human interface called Sugar, accessible to everyone (including kids). Explore the Sugar APIs and learn how to develop and debug a graphical activity in Sugar using Python.

Date:  18 Dec 2007
Level:  Intermediate PDF:  A4 and Letter (220 KB | 25 pages)Get Adobe® Reader®

Activity:  14644 views
Comments:  

Before you start

This tutorial describes an emulation of the One Child Per Laptop (OLPC) XO laptop using QEMU. This means that you'll emulate a complete XO laptop on a PC (running a Linux® or Microsoft® Windows® operating system) for the purposes of developing a Python activity —that is, a program in the OLPC Sugar interface, which is based on the Python programming language. At the heart of the XO laptop, like most of the cool devices out there, is the Linux operating system.

About this tutorial

This tutorial shows how to develop Python activities for the XO laptop. From this perspective, you learn about Sugar (the XO user interface, or UI) and the details behind activity development. You also learn about Python programming, Sugar application program interfaces (APIs) for Python, and platform emulation with QEMU.

Objectives

In this tutorial, you learn about the XO laptop and how to write a Python activity using the Sugar UI. Along the way, you learn more about the XO laptop, its architecture, internals, and use.

Prerequisites

This tutorial is written for Linux developers who want to learn more about the XO laptop and the Sugar UI. It assumes a familiarity with the Linux shell and a basic understanding of the Python language.

System requirements

This tutorial provides a hands-on approach to learning about the XO laptop and Sugar activities. It assumes a Linux computer with at least 1.1GB of free space.

1 of 11 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Linux, Open source
ArticleID=277863
TutorialTitle=Application development for the OLPC laptop
publish-date=12182007
author1-email=mtj@mtjones.com
author1-email-cc=tomyoung@us.ibm.com

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.