Python Touch is designed for students to write python code on a tablet computer

Features:

Samples

Credits

Python touch is created by P. Dring primarily for use by students at Manor CE Academy in York

Python touch uses Skulpt which is released under the MIT License

The text editor uses Ace which is released under the BSD license

Python touch also uses jQuery Mobile which is released under the MIT License

The ability to load / save code hidden in an image uses the steganography library by Peter Eigenschink which is released under the MIT and Beerware licence.

Settings

Text size

Smaller text Larger text

File management

Save

Load

Tick the checkboxes to add the shortcuts to the floating toolbar

Debug

Reset Step

Cursor keys

Left Right
Word Word
Home End
Line Line

Modify

Undo Redo
Tab Tab
Delete Backspace

Special characters

( ) [ ] { } # " ' - = _

Selection

Single Single
Word Word
Home End
Line Line

Clipboard

Copy Cut
Paste
 
# import turtle drawing module
import turtle 

print "Click on Drawing Canvas to see turtle graphics"

draw = turtle.Turtle()
draw.penup()

# draw text
draw.color("#3978AE")
draw.goto(0,20)
draw.write("Python")

draw.color("#FFD344")
draw.goto(0,0)
draw.write("Touch")

# draw shape
draw.goto(-30, -20)
draw.pendown()
draw.color("black")
for i in range(2):
    draw.forward(100)
    draw.left(90)
    draw.forward(70)
    draw.left(90)
    
Press Run to debug / run your code
Choose a photo to embed your code inside:

Source image (no code hidden inside):

Image with your code hidden inside (save and share):

Choose a photo with embedded code:
Upload an image with code hidden inside it

Debugging

Press "Run all lines" to start the program

Variables

Drawing Canvas

Console Output

Python output: