omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. ramorez
    3. Posts

    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
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by ramorez

    • RE: Bug: onkeypress

      @cvp thank you. I will check it out.

      posted in Pythonista
      R
      ramorez
    • RE: Bug: onkeypress

      @JonB hi! thank you. no idea about that so will have a look.

      posted in Pythonista
      R
      ramorez
    • 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()

      posted in Pythonista
      R
      ramorez