advanced-python-homework-2023/turtle
2023-11-16 21:21:10 +03:00
..
controls done turtle thread 2023-11-16 21:21:10 +03:00
equipment done turtle thread 2023-11-16 21:21:10 +03:00
tests start doing turtle task 2023-10-23 13:44:07 +03:00
.gitignore add execute 2023-10-24 10:11:30 +03:00
noblocking_turtle_shell.py done turtle thread 2023-11-16 21:21:10 +03:00
README.md done turtle thread 2023-11-16 21:21:10 +03:00
turtle_shell.py structure 2023-11-08 19:11:39 +03:00

NonBlocking Turtle Shell

Problem statement

Create a non blocking shell for Python Turtle.

Test

I added two shortcut methods for testing:

  • le = execute left 1000 - spinning by 1000$^\circ$
  • fw = execute forward 100 - go forward by 100px

le takes a lot of time. The shell is not locked while turtle is spinning and you can enter other commands (e.g. fw, le). The turtle will do them all step-by-step.