Changes

Jump to navigation Jump to search
Line 9: Line 9:  
For example, type ''file:///home/olpc/Activities/TurtleArt.activity'' into the browser address bar to see the Python files that make up the TurtleArt activity. Click on one of the *.py files to inspect the code.
 
For example, type ''file:///home/olpc/Activities/TurtleArt.activity'' into the browser address bar to see the Python files that make up the TurtleArt activity. Click on one of the *.py files to inspect the code.
   −
You can view the code but not edit it in the browser. To edit, select the code and copy to the clipboard (ctrl c) and open Pippy (the Python editor) and paste it to the code window (ctrl v). You can then edit the code and save it to the Journal, ''keep as Pippy document'' and using a suitable filename (eg ''filename.py'')
+
You can view the code but not edit it in the browser.  
 +
 
 +
There are 3 options for file editing
 +
* the vi editor
 +
* the GNOME desktop on dual boot laptops
 +
* using write as described below:
 +
 
 +
To edit, select the code and copy to the clipboard (ctrl c) and open Pippy (the Python editor) and paste it to the code window (ctrl v). You can then edit the code and save it to the Journal, ''keep as Pippy document'' and using a suitable filename (eg ''filename.py'')
    
To run the modified code, you need to copy it from the journal back to the directory that the activity resides in, in this case  ''/home/olpc/Activities/TurtleArt.activity''
 
To run the modified code, you need to copy it from the journal back to the directory that the activity resides in, in this case  ''/home/olpc/Activities/TurtleArt.activity''
2,486

edits

Navigation menu