Skip to content
Advertisement

TypeError: draw_shape() missing 1 required positional argument: ‘self’

I’m trying to code a simple game of pong as a way to learn pygame as i’m not that experienced in coding. I’ve only recently started to use classes and i guess i don’t quite understand how to use init properly As whenever i run the code:

JavaScript

I got the following error message:

JavaScript

Advertisement

Answer

try:

JavaScript

or just

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement