Skip to main content

An interactive graphical interface to make turtle programming easier & better

Project description

✨Interactive Turtle Lab 🐢🔬

A simple Graphical Interface for executing Python turtle graphics from external files interactively, to make turtle programming easier & better.

Features

  • Browse and load .py files with turtle code
  • A small built-in integrated code editor inside
  • Embedded turtle canvas (no external windows)
  • Built-in sandboxed execution environment

Usage

turtlelab  # Execute from CLI
  1. Click Browse... to select a Python file
  2. Review the code from the editor
  3. Click Run to execute (Ctrl+Enter). It will automatically sync from the file loaded as well before running. So you can edit the file in your personal Editor and just click 'Run' and it will auto-fetch code from the file.
  4. Click Clear to reset the canvas

Important Rules

  • Use provided t (turtle) and screen objects directly
  • Do NOT use import turtle in your code

Example Files

Check the examples/ folder (inside ..Python/Lib/site-packages/turtlelab ) for sample scripts:

  • square.py - Draw a square
  • star.py - Draw a star
  • spiral.py - Draw a spiral

API

Your code has access to:

  • t - RawTurtle object with full turtle graphics API
  • screen - TurtleScreen for the canvas

More features will be coming soon!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

turtlelab-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

turtlelab-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file turtlelab-0.1.0.tar.gz.

File metadata

  • Download URL: turtlelab-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for turtlelab-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5c78dc34c3b000d566cfd7f5ddc310cc72f103d74fc0e85f34eb0272c8565a1f
MD5 6709a6a35b985c9c8f43ba27dc5e99ca
BLAKE2b-256 7f2fa3e95815c51b08d71ab414cfde10227ac709289714be09c91d7b05ab05ef

See more details on using hashes here.

File details

Details for the file turtlelab-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: turtlelab-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for turtlelab-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f22dcdb92bb88077afa5d70d5802c4c84fca091fe7815438c0b4768486e195f0
MD5 f447212009a28eefb6b87993fb9547fb
BLAKE2b-256 d997dab1268707d02059ef38f0f65eeccc1389931ac214b6315ae5988371391a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page