drawtool python code example
Example 1: turtle graphics in python
from turtle import *
color('red', 'yellow')
begin_fill()
while True:
forward(200)
left(170)
if abs(pos()) < 1:
break
end_fill()
done()
Example 2: how to setup Turtle python
import turtle
win = turtle.Screen()
win.bgcolor("black")
win.setup(Height=800, length=500)
win.title("setup")