import turtle as t
t.forward(100)
t.tracer(10)
t.right(90)
t.forward(200)
t.mainloop()
What happened
I get an error on the tracer() call:
TypeError: tracer() takes from 1 to 2 positional arguments but 3 were given
What I wanted to happen
The live turtle display should show the first line, but not the second one. When I run the script under Python, that's what happens, because the display only updates after every 10 changes. If I call update() explicitly, then it should show both lines.
import turtle as t
t.forward(100)
t.tracer(10)
t.right(90)
t.forward(200)
t.update()
t.mainloop()
My environment
Describe the versions of everything you were using:
development version 73ef464bf79af43c6f9931fb3cea58a0f124faa3
What I did
Use the
tracer()
method in live turtle mode.What happened
I get an error on the
tracer()
call:What I wanted to happen
The live turtle display should show the first line, but not the second one. When I run the script under Python, that's what happens, because the display only updates after every 10 changes. If I call
update()
explicitly, then it should show both lines.My environment
Describe the versions of everything you were using: