Talk:Activities/Turtle Art/Patching

From Sugar Labs

Jump to: navigation, search

Contents

Ideas for new features

Bill Kerr's questions (and some answers)

The source code for Sugar Activities are found in /home/olpc/Activities. Each Activity is in a subdirectory, e.g., /home/olpc/Activities/TurtleArt.activity. The source code (Python files) are in these subdirectories.
I started reading through the code, looking for sections that were relevant to problem I was trying to solve. For example, since I was adding a new math function, I looked in the code for where the other math functions were defined. I found the code for "+", "-", "*", "/", "random", etc. in talogo.py and I found code for generating blocks in taturtle.py. It was an iterative process. I proceeded by trial and error and made lots of mistakes along the way. In the process, I learned a lot about the overall structure of the code.
A debugging tip: print statements put into the code are logged; use the Log Activity to view them.
Many Activities has an Authors file. Most Activities have additional author information on their respective wiki pages, e.g., [1]. Most Activities have a maintainer in the trac system [2]. TurtleArt tickets are "Owned by: bss".
There are a number of freely available guides to programming in Python, including:
  • The Byte of Python (www.swaroopch.com/notes/Python)
  • How to Think Like a Computer Scientist: Learning with Python, 2nd edition (openbookproject.net/thinkcs/python2e.php)
  • Python for Fun (www.openbookproject.net/py4fun/)
  • Python Bibliotheca (www.openbookproject.net/pybiblio/)
  • Dive into Python (diveintopython.org/)
Start by asking questions... welcome to the community!
Start by lurking a bit and observing. Different parts of the community have different customs. Read code and FAQs, and get in the habit of checking through Google for help, before asking questions. Learn the basics of git and Trac.--Mokurai 00:53, 15 March 2009 (UTC)

--Walter 13:13, 27 September 2008 (UTC)

erikos comments

Thanks Simon. I think I have it straight in the article now. --Walter 00:52, 21 October 2008 (UTC)

Earth Treasury

I'm planning to use Turtle Art to teach math, programming (in TA, Logo, and Python, at least), and Computer Science, and to write a book on it at FLOSS Manuals.--Mokurai 00:53, 15 March 2009 (UTC)

Scrolling canvas... another item on the wish list... Tony, can you file a ticket? --Walter 04:07, 15 March 2009 (UTC)- #549 Tony
Personal tools
Namespaces
Variants
Actions
Sugar
Projects
Teams
Local Labs
Using the Wiki
Google translations