Skip to content

Tag: pygame

Attribute Error: List object has no attribute CheckClick

In the Swap function, I am checking under some index a button class instance, which I checked using print statements, but for some reason it still gives me an error saying that it has no such attribute check click. Any tips on formatting are also welcome, I am just a beginner. I am using three different array…

Python/Pygame : “pygame.error: display Surface quit”

So, I’m making a game project, and I decided, for once, to make a custom class for my pygame window, like so : And, in the gameloop, I decided to make an instance of this class, and to call the method, like so : But when I try to run the main loop, it gives me this error message (that