r/coding • • Jan 11 '20

Learn python in 7hrs

https://youtu.be/XGf2GcyHPhc
480 Upvotes

19 comments sorted by

View all comments

3

u/ukropusa Jan 12 '20

Get in to the problem. Mac and using Atom.

Traceback (most recent call last): File "/Users/.../Python/pong.py", line 46, in <module> wn.onkeypress(paddle_a_up, "w") AttributeError: '_Screen' object has no attribute 'onkeypress' [Finished in 0.728s]

1

u/ukropusa Jan 12 '20

it is on the line where trying to make paddle_a_up

# Keyboard binding

wn.listen()

wn.onkeypress(paddle_a_up, "w")

1

u/ukropusa Jan 12 '20

Solved (kinda)!

looks like Visual studio run it fine. I think Im missing some packages in Atom. I'll dig dipper