OLPC Python Environment: Difference between revisions
m (→Introduction: remove version as it's now 2.6) |
|||
(15 intermediate revisions by 13 users not shown) | |||
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. |
The OLPC's [[Sugar]] environment is written in Python. 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== |
||
Line 11: | Line 10: | ||
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. |
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. |
||
==Tutorial== |
|||
There is an excellent [http://www.ibm.com/developerworks/linux/edu/l-dw-linux-xo-python-i.html?S_TACT=105AGX03&S_CMP=HP%3Cbr%3E Sugar Tutorial] at [http://www.ibm.com/developerworks/linux IBM's developerWorks]. |
|||
==Guidelines== |
==Guidelines== |
||
Since the OLPC is rather different from the average PC, we need to keep in mind a set of guidelines while building educational |
Since the OLPC is rather different from the average PC, we need to keep in mind a set of guidelines while building educational activities. |
||
#Remember that the end user is a kid. |
#Remember that the end user is a kid. |
||
#Keep the power consumption low. Avoid animated graphics or provide a way for the user to turn them off. |
#Keep the power consumption low. Avoid animated graphics or provide a way for the user to turn them off. |
||
#Use simple datastores such as pickle or dbm. For relational databases use [[SQLite]] |
#Use simple datastores such as pickle or dbm. For relational databases use [[SQLite]]. |
||
#Keep your GUI simple. Remember that the final |
#Keep your GUI simple. Remember that the final activity will be running in a tabbed page inside [[Sugar]]. |
||
#Use |
#Use [[Unicode]] for all strings. |
||
#Use the gettext module for all string literals |
#Use the gettext module for all string literals. |
||
#Get a friend to translate all string literals and test your program in their language |
#Get a friend to translate all string literals and test your program in their language. |
||
#Where possible, use international iconic symbols |
#Where possible, use international iconic symbols in addition to text. |
||
[[Category: |
[[Category:Developers]] |
||
[[Category:Sugar]] |
[[Category:Sugar]] |
||
[[Category:Python]] |
Latest revision as of 21:01, 13 August 2010
Introduction
The OLPC's Sugar environment is written in Python. 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.
- Setting Up a Sugar Development Environment on MacOS X
- Setting Up a Sugar Development Environment on Windows
- Setting Up a Sugar Development Environment on *IX OSes
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.
Tutorial
There is an excellent Sugar Tutorial at IBM's developerWorks.
Guidelines
Since the OLPC is rather different from the average PC, we need to keep in mind a set of guidelines while building educational activities.
- Remember that the end user is a kid.
- Keep the power consumption low. Avoid animated graphics or provide a way for the user to turn them off.
- Use simple datastores such as pickle or dbm. For relational databases use SQLite.
- Keep your GUI simple. Remember that the final activity will be running in a tabbed page inside Sugar.
- Use Unicode for all strings.
- Use the gettext module for all string literals.
- Get a friend to translate all string literals and test your program in their language.
- Where possible, use international iconic symbols in addition to text.