I am creating a class called Button
, and one of the properties of this class is an image.
I wanted to know if there is a problem, if within this class I used self.imagem = pygame.image.load()
to not have to pass the image as an argument, since in this application I will only have a button image.
So whenever I create a Button it will read the same image again or will know that it has already loaded this image before and will simply pull it out of a cache, I do not know?