OLPC Python Environment: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (Reverted edits by 81.177.14.26 (81.177.14.26); changed back to last version by 195.16.185.35)
Line 1: Line 1:
==Introduction==
==Introduction==
If you are able to program in Python then you can start building OLPC applications right now. The core tools, [[Python]] and [[GTK]], are available on Windows, Macintosh and UNIX. It is not necessary to get Sugar up and running right away unless you want to do something complex using [[dbus]]. For most educational applications, you only need to have [[Sugar]] for the final testing phases.
If you are able to program in Python then you can start building OLPC applications right now. The core tools, [[Python]] and [[GTK]], are available on Windows, Macintosh and UNIX. It is not necessary to get Sugar up and running right away unless you want to do something complex using [[dbus]]. For most educational applications, you only need to have [[Sugar]] for the final testing phases.
291320625688435187261


==Basic Instructions==
==Basic Instructions==

Revision as of 12:47, 26 November 2006

Introduction

If you are able to program in Python then you can start building OLPC applications right now. The core tools, Python and GTK, are available on Windows, Macintosh and UNIX. It is not necessary to get Sugar up and running right away unless you want to do something complex using dbus. For most educational applications, you only need to have Sugar for the final testing phases.

Basic Instructions

The following three pages have an outline of getting Sugar running on your OS however they still need more contributors.

If you want to develop an application on your own systems, you can download a standard Python install found at http://www.python.org and the PyGTK module from http://www.pygtk.org.

Guidelines

Since the OLPC is rather different from the average PC, we need to keep in mind a set of guidelines while building educational applications.

  1. Remember that the end user is a kid.
  2. Keep the power consumption low. Avoid animated graphics or provide a way for the user to turn them off.
  3. Use simple datastores such as pickle or dbm. For relational databases use SQLite
  4. Keep your GUI simple. Remember that the final application will be running in a tabbed page inside Sugar
  5. Use UNICODE for all strings
  6. Use the gettext module for all string literals
  7. Get a friend to translate all string literals and test your program in their language
  8. Where possible, use international iconic symbols instead of text