@cvp thank you. I will check it out.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
R
Posts made by ramorez
-
RE: Bug: onkeypress
@JonB hi! thank you. no idea about that so will have a look.
-
Bug: onkeypress
onkey and onkeypress generated errors in pythonista.
AttributeError:
'TurtleView' object has no attribute 'onkeypress ' 'onkey'This code works in other python IDE environments verbatim (such as PyCharm / Replit).
code:
import turtle
window = turtle.Screen()
fred = turtle.Turtle()def draw_square():
for _ in range(4):
fred.forward(100)
fred.left(90)window.onkeypress(draw_square, 'space')
window.listen()turtle.done()