Skip to content

arsalan-arish/turtlelab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✨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

pip install turtlelab
turtlelab test.py
  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
  5. Click Save (Ctrl-s) to save the code in code editor to the loaded file. If the file is not loaded already, it will prompt a filedialog window to ask save name and path

Important Rules

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

API

Your code has access to:

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

More features will be coming soon!

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages