• I'll just point out that the turtle module in pythonista is written in pure python (plus the canvas or ui module, I forget which), so can be edited to provide whatever missing functionality you need... Although that may be more effort than you really want!

    For instance, see

    The cpython turtle module is mostly NOT tkinter -- in theory it shouldn't be too hard to just strip out the tkinter drawing methods with ui.path drawing methods.

    If you are trying required to submit programs that work in a particular environment, you probably should make sure that you run your final checks in that
    environment -- get yourself a free shell account if you don't have a desktop/laptop. Sagecell also is a way that you can run code in a more standard environment (there are some threads on pythonista and sagecell with a wrench script that lets you run a script edited in pythonista on a sagecell server)

  • @mikael I only mean that I did not change his script at all, only add an own write...

  • In the console

    import turtle, editor editor.open_file(turtle.__file__)

    This will let you see exactly how turtle was implemented in pythonista.

    Alternatively, here is a modified version that includes pen shapes.

  • >>> sys.path ['/private/var/mobile/Containers/Shared/AppGroup/C534C622-2FDA-41F7-AE91-E3AAFE5FFC6B/Pythonista3/Documents/site-packages-3', '/private/var/mobile/Containers/Shared/AppGroup/C534C622-2FDA-41F7-AE91-E3AAFE5FFC6B/Pythonista3/Documents/site-packages', '/var/containers/Bundle/Application/DBC1896E-6227-4695-9B4B-AC1340AD4945/Pythonista3.app/Frameworks/Py3Kit.framework/pylib', '/var/containers/Bundle/Application/DBC1896E-6227-4695-9B4B-AC1340AD4945/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages', '/var/containers/Bundle/Application/DBC1896E-6227-4695-9B4B-AC1340AD4945/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/PIL_compat', '/var/containers/Bundle/Application/DBC1896E-6227-4695-9B4B-AC1340AD4945/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/lib/python36.zip', '/var/containers/Bundle/Application/DBC1896E-6227-4695-9B4B-AC1340AD4945/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/lib/python3.6', '/var/containers/Bundle/Application/DBC1896E-6227-4695-9B4B-AC1340AD4945/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/lib/python3.6/lib-dynload']

    which shows that site-packages-3 takes precedence over site-packages which takes precdence over the build in modules. (in the 2.7 interpreter, it uses site-packages-2 and site-packages) That is nice because you can update certain things, though you must also be careful you don't make a module with the same name as a builtin.

    Some other info which might be useful, during startup, pythonista tries to import a module pythonista_startup which you could place in site-packages (applies to both interpreter) or site-packages-3. You could have your startup download weekly assignments or examples, print instructions, etc.

  • The Pythonista turtle module is rewritten completely from the desktop module, so I don't know if there's complete feature parity, but in the desktop module I think you can use turtle.speed(0). Give it a try and let me know.

Internal error.

Oops! Looks like something went wrong!